Warning: Permanently added '2620:52:3:1:dead:beef:cafe:c1cd' (ED25519) to the list of known hosts. You can reproduce this build on your computer by running: sudo dnf install copr-rpmbuild /usr/bin/copr-rpmbuild --verbose --drop-resultdir --task-url https://copr.fedorainfracloud.org/backend/get-build-task/8268289-fedora-rawhide-x86_64 --chroot fedora-rawhide-x86_64 Version: 1.1 PID: 35661 Logging PID: 35662 Task: {'allow_user_ssh': False, 'appstream': False, 'background': True, 'build_id': 8268289, 'buildroot_pkgs': [], 'chroot': 'fedora-rawhide-x86_64', 'enable_net': False, 'fedora_review': False, 'git_hash': '0dac796efea6f27711ab4ee6902a96aaebdc3fd1', 'git_repo': 'https://copr-dist-git.fedorainfracloud.org/git/limb/numpy/python-contourpy', 'isolation': 'default', 'memory_reqs': 2048, 'package_name': 'python-contourpy', 'package_version': '1.3.0-2', 'project_dirname': 'numpy', 'project_name': 'numpy', 'project_owner': 'limb', 'repo_priority': None, 'repos': [{'baseurl': 'https://download.copr.fedorainfracloud.org/results/limb/numpy/fedora-rawhide-x86_64/', 'id': 'copr_base', 'name': 'Copr repository', 'priority': None}, {'baseurl': 'https://kojipkgs.fedoraproject.org/repos/rawhide/latest/x86_64/', 'id': 'https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64', 'name': 'Additional repo https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64'}], 'sandbox': 'limb/numpy--limb', 'source_json': {}, 'source_type': None, 'ssh_public_keys': None, 'storage': 0, 'submitter': 'limb', 'tags': [], 'task_id': '8268289-fedora-rawhide-x86_64', 'timeout': 18000, 'uses_devel_repo': False, 'with_opts': [], 'without_opts': []} Running: git clone https://copr-dist-git.fedorainfracloud.org/git/limb/numpy/python-contourpy /var/lib/copr-rpmbuild/workspace/workdir-fe5_fy3j/python-contourpy --depth 500 --no-single-branch --recursive cmd: ['git', 'clone', 'https://copr-dist-git.fedorainfracloud.org/git/limb/numpy/python-contourpy', '/var/lib/copr-rpmbuild/workspace/workdir-fe5_fy3j/python-contourpy', '--depth', '500', '--no-single-branch', '--recursive'] cwd: . rc: 0 stdout: stderr: Cloning into '/var/lib/copr-rpmbuild/workspace/workdir-fe5_fy3j/python-contourpy'... Running: git checkout 0dac796efea6f27711ab4ee6902a96aaebdc3fd1 -- cmd: ['git', 'checkout', '0dac796efea6f27711ab4ee6902a96aaebdc3fd1', '--'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-fe5_fy3j/python-contourpy rc: 0 stdout: stderr: Note: switching to '0dac796efea6f27711ab4ee6902a96aaebdc3fd1'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 0dac796 automatic import of python-contourpy Running: dist-git-client sources cmd: ['dist-git-client', 'sources'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-fe5_fy3j/python-contourpy rc: 0 stdout: stderr: INFO: Reading stdout from command: git rev-parse --abbrev-ref HEAD INFO: Reading stdout from command: git rev-parse HEAD INFO: Reading sources specification file: sources INFO: Downloading contourpy-1.3.0.tar.gz INFO: Reading stdout from command: curl --help all INFO: Calling: curl -H Pragma: -o contourpy-1.3.0.tar.gz --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/limb/numpy/python-contourpy/contourpy-1.3.0.tar.gz/md5/81447a2ceaf933b28db04d02086a22ed/contourpy-1.3.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 12.8M 100 12.8M 0 0 23.9M 0 --:--:-- --:--:-- --:--:-- 23.9M INFO: Reading stdout from command: md5sum contourpy-1.3.0.tar.gz /usr/bin/tail: /var/lib/copr-rpmbuild/main.log: file truncated Running (timeout=18000): unbuffer mock --spec /var/lib/copr-rpmbuild/workspace/workdir-fe5_fy3j/python-contourpy/python-contourpy.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-fe5_fy3j/python-contourpy --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1731685556.845210 -r /var/lib/copr-rpmbuild/results/configs/child.cfg INFO: mock.py version 5.9 starting (python version = 3.12.1, NVR = mock-5.9-1.fc39), args: /usr/libexec/mock/mock --spec /var/lib/copr-rpmbuild/workspace/workdir-fe5_fy3j/python-contourpy/python-contourpy.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-fe5_fy3j/python-contourpy --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1731685556.845210 -r /var/lib/copr-rpmbuild/results/configs/child.cfg Start(bootstrap): init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish(bootstrap): init plugins Start: init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/var/lib/copr-rpmbuild/workspace/workdir-fe5_fy3j/python-contourpy/python-contourpy.spec) Config(fedora-rawhide-x86_64) Start: clean chroot Finish: clean chroot Mock Version: 5.9 INFO: Mock Version: 5.9 Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1731685556.845210/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Guessed host environment type: unknown INFO: Using bootstrap image: registry.fedoraproject.org/fedora:rawhide INFO: Pulling image: registry.fedoraproject.org/fedora:rawhide INFO: Copy content of container registry.fedoraproject.org/fedora:rawhide to /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1731685556.845210/root INFO: Checking that registry.fedoraproject.org/fedora:rawhide image matches host's architecture INFO: mounting registry.fedoraproject.org/fedora:rawhide with podman image mount INFO: image registry.fedoraproject.org/fedora:rawhide as /var/lib/containers/storage/overlay/d72443e41f0eded3a60e8ee7c456b498ae9bf9419770c6c2b152fab5f9011d8c/merged INFO: umounting image registry.fedoraproject.org/fedora:rawhide (/var/lib/containers/storage/overlay/d72443e41f0eded3a60e8ee7c456b498ae9bf9419770c6c2b152fab5f9011d8c/merged) with podman image umount INFO: Package manager dnf5 detected and used (fallback) INFO: Not updating bootstrap chroot, bootstrap_image_ready=True Start(bootstrap): creating root cache Finish(bootstrap): creating root cache Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1731685556.845210/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf5 detected and used (direct choice) INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-4.20.0-1.fc42.x86_64 rpm-sequoia-1.7.0-2.fc41.x86_64 dnf5-5.2.7.0-1.fc42.x86_64 dnf5-plugins-5.2.7.0-1.fc42.x86_64 Start: installing minimal buildroot with dnf5 Updating and loading repositories: fedora 100% | 877.2 KiB/s | 24.6 KiB | 00m00s Copr repository 100% | 43.6 KiB/s | 1.5 KiB | 00m00s Additional repo https_kojipkgs_fedorap 100% | 94.5 KiB/s | 3.5 KiB | 00m00s Copr repository 100% | 904.2 KiB/s | 68.7 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing group/module packages: bash x86_64 5.2.37-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 8.2 MiB bzip2 x86_64 1.0.8-19.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 95.7 KiB coreutils x86_64 9.5-11.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 5.4 MiB cpio x86_64 2.15-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.1 MiB diffutils x86_64 3.10-8.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.6 MiB fedora-release-common noarch 42-0.8 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 19.7 KiB findutils x86_64 1:4.10.0-4.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.8 MiB gawk x86_64 5.3.0-4.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.7 MiB glibc-minimal-langpack x86_64 2.40.9000-18.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 0.0 B grep x86_64 3.11-9.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.0 MiB gzip x86_64 1.13-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 389.0 KiB info x86_64 7.1.1-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 361.8 KiB patch x86_64 2.7.6-25.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 266.7 KiB redhat-rpm-config noarch 296-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 186.6 KiB rpm-build x86_64 4.20.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 194.3 KiB sed x86_64 4.9-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 861.5 KiB shadow-utils x86_64 2:4.16.0-7.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 4.0 MiB tar x86_64 2:1.35-4.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.9 MiB unzip x86_64 6.0-64.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 386.8 KiB util-linux x86_64 2.40.2-8.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 3.7 MiB which x86_64 2.21-42.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 80.2 KiB xz x86_64 1:5.6.3-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.2 MiB Installing dependencies: add-determinism x86_64 0.4.3-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.4 MiB alternatives x86_64 1.30-1.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 66.3 KiB ansible-srpm-macros noarch 1-16.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 35.7 KiB audit-libs x86_64 4.0.2-1.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 331.3 KiB authselect x86_64 1.5.0-8.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 157.5 KiB authselect-libs x86_64 1.5.0-8.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 822.2 KiB basesystem noarch 11-21.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 0.0 B binutils x86_64 2.43.50-7.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 28.5 MiB build-reproducibility-srpm-macros noarch 0.4.3-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 735.0 B bzip2-libs x86_64 1.0.8-19.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 80.7 KiB ca-certificates noarch 2024.2.69_v8.0.401-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.6 MiB coreutils-common x86_64 9.5-11.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 11.2 MiB cracklib x86_64 2.9.11-6.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 238.9 KiB crypto-policies noarch 20241106-1.git35892de.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 136.9 KiB curl x86_64 8.10.1-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 453.3 KiB cyrus-sasl-lib x86_64 2.1.28-27.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.3 MiB debugedit x86_64 5.1-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 192.7 KiB dwz x86_64 0.15-8.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 299.2 KiB ed x86_64 1.20.2-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 146.9 KiB efi-srpm-macros noarch 5-12.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 40.1 KiB elfutils x86_64 0.192-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.6 MiB elfutils-debuginfod-client x86_64 0.192-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 80.4 KiB elfutils-default-yama-scope noarch 0.192-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.8 KiB elfutils-libelf x86_64 0.192-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.2 MiB elfutils-libs x86_64 0.192-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 672.8 KiB fedora-gpg-keys noarch 42-0.3 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 126.4 KiB fedora-release noarch 42-0.8 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 0.0 B fedora-release-identity-basic noarch 42-0.8 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 719.0 B fedora-repos noarch 42-0.3 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 4.9 KiB fedora-repos-rawhide noarch 42-0.3 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.2 KiB file x86_64 5.45-7.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 103.5 KiB file-libs x86_64 5.45-7.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 9.9 MiB filesystem x86_64 3.18-29.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 106.0 B fonts-srpm-macros noarch 1:2.0.5-17.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 55.8 KiB forge-srpm-macros noarch 0.4.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 38.9 KiB fpc-srpm-macros noarch 1.3-13.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 144.0 B gdb-minimal x86_64 15.2-3.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 13.0 MiB gdbm x86_64 1:1.23-7.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 460.9 KiB gdbm-libs x86_64 1:1.23-7.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 121.9 KiB ghc-srpm-macros noarch 1.9.2-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 779.0 B glibc x86_64 2.40.9000-18.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 6.7 MiB glibc-common x86_64 2.40.9000-18.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.1 MiB glibc-gconv-extra x86_64 2.40.9000-18.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 8.0 MiB gmp x86_64 1:6.3.0-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 811.4 KiB gnat-srpm-macros noarch 6-6.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.0 KiB go-srpm-macros noarch 3.6.0-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 60.8 KiB groff-base x86_64 1.23.0-7.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 3.8 MiB jansson x86_64 2.14-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 93.1 KiB json-c x86_64 0.18-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 83.3 KiB kernel-srpm-macros noarch 1.0-24.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.9 KiB keyutils-libs x86_64 1.6.3-4.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 54.4 KiB krb5-libs x86_64 1.21.3-3.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.3 MiB libacl x86_64 2.3.2-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 40.0 KiB libarchive x86_64 3.7.7-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 932.3 KiB libattr x86_64 2.5.2-4.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 28.5 KiB libblkid x86_64 2.40.2-8.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 262.5 KiB libbrotli x86_64 1.1.0-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 837.6 KiB libcap x86_64 2.71-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 210.8 KiB libcap-ng x86_64 0.8.5-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 69.2 KiB libcom_err x86_64 1.47.1-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 67.2 KiB libcurl x86_64 8.10.1-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 838.4 KiB libeconf x86_64 0.7.4-3.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 65.7 KiB libevent x86_64 2.1.12-14.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 895.7 KiB libfdisk x86_64 2.40.2-8.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 362.9 KiB libffi x86_64 3.4.6-3.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 86.4 KiB libgcc x86_64 14.2.1-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 270.6 KiB libgomp x86_64 14.2.1-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 519.8 KiB libidn2 x86_64 2.3.7-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 329.1 KiB libmount x86_64 2.40.2-8.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 355.8 KiB libnghttp2 x86_64 1.64.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 174.5 KiB libnsl2 x86_64 2.0.1-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 57.9 KiB libpkgconf x86_64 2.3.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 78.2 KiB libpsl x86_64 0.21.5-4.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 80.5 KiB libpwquality x86_64 1.4.5-11.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 417.8 KiB libselinux x86_64 3.7-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 181.1 KiB libsemanage x86_64 3.7-3.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 298.0 KiB libsepol x86_64 3.7-3.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 818.0 KiB libsmartcols x86_64 2.40.2-8.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 180.4 KiB libssh x86_64 0.11.1-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 569.6 KiB libssh-config noarch 0.11.1-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 277.0 B libstdc++ x86_64 14.2.1-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.8 MiB libtasn1 x86_64 4.19.0-9.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 175.7 KiB libtirpc x86_64 1.3.6-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 205.5 KiB libtool-ltdl x86_64 2.4.7-12.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 66.2 KiB libunistring x86_64 1.1-8.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.7 MiB libuuid x86_64 2.40.2-8.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 41.4 KiB libverto x86_64 0.3.2-9.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 29.5 KiB libxcrypt x86_64 4.4.36-10.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 267.7 KiB libxml2 x86_64 2.12.8-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.7 MiB libzstd x86_64 1.5.6-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 795.9 KiB lua-libs x86_64 5.4.7-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 285.0 KiB lua-srpm-macros noarch 1-14.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.3 KiB lz4-libs x86_64 1.10.0-1.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 145.5 KiB mpfr x86_64 4.2.1-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 832.1 KiB ncurses x86_64 6.5-2.20240629.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 627.3 KiB ncurses-base noarch 6.5-2.20240629.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 326.3 KiB ncurses-libs x86_64 6.5-2.20240629.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 975.2 KiB ocaml-srpm-macros noarch 10-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.9 KiB openblas-srpm-macros noarch 2-18.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 112.0 B openldap x86_64 2.6.8-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 644.2 KiB openssl-libs x86_64 1:3.2.2-8.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 7.8 MiB p11-kit x86_64 0.25.5-4.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.2 MiB p11-kit-trust x86_64 0.25.5-4.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 403.8 KiB package-notes-srpm-macros noarch 0.5-12.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.6 KiB pam x86_64 1.7.0-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.7 MiB pam-libs x86_64 1.7.0-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 127.7 KiB pcre2 x86_64 10.44-1.fc41.1 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 653.5 KiB pcre2-syntax noarch 10.44-1.fc41.1 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 251.6 KiB perl-AutoLoader noarch 5.74-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 20.5 KiB perl-B x86_64 1.89-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 498.0 KiB perl-Carp noarch 1.54-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 46.6 KiB perl-Class-Struct noarch 0.68-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 25.4 KiB perl-Data-Dumper x86_64 2.189-512.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 111.7 KiB perl-Digest noarch 1.20-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 35.3 KiB perl-Digest-MD5 x86_64 2.59-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 59.8 KiB perl-DynaLoader x86_64 1.56-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 32.1 KiB perl-Encode x86_64 4:3.21-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 4.7 MiB perl-Errno x86_64 1.38-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 8.4 KiB perl-Exporter noarch 5.78-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 54.3 KiB perl-Fcntl x86_64 1.18-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 49.0 KiB perl-File-Basename noarch 2.86-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 14.0 KiB perl-File-Path noarch 2.18-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 63.5 KiB perl-File-Temp noarch 1:0.231.100-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 162.3 KiB perl-File-stat noarch 1.14-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 12.5 KiB perl-FileHandle noarch 2.05-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 9.3 KiB perl-Getopt-Long noarch 1:2.58-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 144.5 KiB perl-Getopt-Std noarch 1.14-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 11.2 KiB perl-HTTP-Tiny noarch 0.090-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 154.4 KiB perl-IO x86_64 1.55-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 151.1 KiB perl-IO-Socket-IP noarch 0.42-512.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 98.7 KiB perl-IO-Socket-SSL noarch 2.089-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 703.3 KiB perl-IPC-Open3 noarch 1.22-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 22.5 KiB perl-MIME-Base32 noarch 1.303-21.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 30.7 KiB perl-MIME-Base64 x86_64 3.16-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 46.1 KiB perl-Net-SSLeay x86_64 1.94-7.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.3 MiB perl-POSIX x86_64 2.20-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 235.1 KiB perl-PathTools x86_64 3.91-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 180.0 KiB perl-Pod-Escapes noarch 1:1.07-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 24.9 KiB perl-Pod-Perldoc noarch 3.28.01-512.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 163.7 KiB perl-Pod-Simple noarch 1:3.45-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 560.9 KiB perl-Pod-Usage noarch 4:2.03-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 84.8 KiB perl-Scalar-List-Utils x86_64 5:1.68-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 148.9 KiB perl-SelectSaver noarch 1.02-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.2 KiB perl-Socket x86_64 4:2.038-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 124.0 KiB perl-Storable x86_64 1:3.32-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 232.4 KiB perl-Symbol noarch 1.09-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 6.8 KiB perl-Term-ANSIColor noarch 5.01-512.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 97.5 KiB perl-Term-Cap noarch 1.18-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 29.3 KiB perl-Text-ParseWords noarch 3.31-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 13.6 KiB perl-Text-Tabs+Wrap noarch 2024.001-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 22.6 KiB perl-Time-Local noarch 2:1.350-511.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 69.0 KiB perl-URI noarch 5.31-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 257.0 KiB perl-base noarch 2.27-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 12.5 KiB perl-constant noarch 1.33-512.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 26.2 KiB perl-if noarch 0.61.000-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 5.8 KiB perl-interpreter x86_64 4:5.40.0-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 122.3 KiB perl-libnet noarch 3.15-512.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 289.4 KiB perl-libs x86_64 4:5.40.0-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 9.9 MiB perl-locale noarch 1.12-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 6.5 KiB perl-mro x86_64 1.29-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 45.6 KiB perl-overload noarch 1.37-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 71.5 KiB perl-overloading noarch 0.02-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 4.8 KiB perl-parent noarch 1:0.242-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 10.0 KiB perl-podlators noarch 1:6.0.2-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 317.5 KiB perl-srpm-macros noarch 1-56.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 861.0 B perl-vars noarch 1.05-512.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 3.9 KiB pkgconf x86_64 2.3.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 88.6 KiB pkgconf-m4 noarch 2.3.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 14.4 KiB pkgconf-pkg-config x86_64 2.3.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 989.0 B popt x86_64 1.19-7.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 136.9 KiB publicsuffix-list-dafsa noarch 20240107-4.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 67.5 KiB pyproject-srpm-macros noarch 1.16.2-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.9 KiB python-srpm-macros noarch 3.13-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 51.0 KiB qt5-srpm-macros noarch 5.15.15-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 500.0 B qt6-srpm-macros noarch 6.8.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 456.0 B readline x86_64 8.2-11.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 493.1 KiB rpm x86_64 4.20.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 3.1 MiB rpm-build-libs x86_64 4.20.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 206.7 KiB rpm-libs x86_64 4.20.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 726.1 KiB rpm-sequoia x86_64 1.7.0-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.4 MiB rust-srpm-macros noarch 26.3-3.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 4.8 KiB setup noarch 2.15.0-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 720.7 KiB sqlite-libs x86_64 3.47.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.5 MiB systemd-libs x86_64 257~rc1-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.3 MiB util-linux-core x86_64 2.40.2-8.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.5 MiB xxhash-libs x86_64 0.8.2-4.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 88.4 KiB xz-libs x86_64 1:5.6.3-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 218.4 KiB zig-srpm-macros noarch 1-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.1 KiB zip x86_64 3.0-41.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 703.2 KiB zlib-ng-compat x86_64 2.2.2-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 134.0 KiB zstd x86_64 1.5.6-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.7 MiB Installing groups: Buildsystem building group Transaction Summary: Installing: 213 packages Total size of inbound packages is 61 MiB. Need to download 0 B. After this operation, 207 MiB extra will be used (install 207 MiB, remove 0 B). [1/1] tar-2:1.35-4.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [1/1] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/2] bzip2-0:1.0.8-19.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [2/2] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/3] redhat-rpm-config-0:296-1.fc42.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [3/3] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/4] rpm-build-0:4.20.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [4/4] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/5] unzip-0:6.0-64.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [5/5] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/6] cpio-0:2.15-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [6/6] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/7] which-0:2.21-42.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [7/7] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/8] bash-0:5.2.37-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [8/8] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/9] coreutils-0:9.5-11.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [9/9] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/10] grep-0:3.11-9.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [10/10] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/11] patch-0:2.7.6-25.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [11/11] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/12] sed-0:4.9-3.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [12/12] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/13] shadow-utils-2:4.16.0-7.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [13/13] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/14] util-linux-0:2.40.2-8.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [14/14] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/15] diffutils-0:3.10-8.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [15/15] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/16] fedora-release-common-0:42-0.8. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [16/16] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/17] findutils-1:4.10.0-4.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [17/17] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/18] gawk-0:5.3.0-4.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [18/18] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/19] glibc-minimal-langpack-0:2.40.9 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [19/19] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/20] gzip-0:1.13-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [20/20] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/21] info-0:7.1.1-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [21/21] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/22] xz-1:5.6.3-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [22/22] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/23] glibc-0:2.40.9000-18.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [23/23] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/24] xz-libs-1:5.6.3-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [24/24] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/25] audit-libs-0:4.0.2-1.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [25/25] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/26] authselect-libs-0:1.5.0-8.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [26/26] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/27] libblkid-0:2.40.2-8.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [27/27] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/28] libcap-ng-0:0.8.5-3.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [28/28] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/29] libfdisk-0:2.40.2-8.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [29/29] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/30] libmount-0:2.40.2-8.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [30/30] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/31] libselinux-0:3.7-6.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [31/31] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/32] libsmartcols-0:2.40.2-8.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [32/32] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/33] libuuid-0:2.40.2-8.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [33/33] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/34] ncurses-libs-0:6.5-2.20240629.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [34/34] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/35] pam-0:1.7.0-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [35/35] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/36] pam-libs-0:1.7.0-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [36/36] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/37] readline-0:8.2-11.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [37/37] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/38] systemd-libs-0:257~rc1-2.fc42.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [38/38] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/39] util-linux-core-0:2.40.2-8.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [39/39] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/40] zlib-ng-compat-0:2.2.2-1.fc42.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [40/40] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/41] bzip2-libs-0:1.0.8-19.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [41/41] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/42] libacl-0:2.3.2-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [42/42] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/43] libcap-0:2.71-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [43/43] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/44] libgcc-0:14.2.1-6.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [44/44] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/45] libattr-0:2.5.2-4.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [45/45] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/46] libeconf-0:0.7.4-3.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [46/46] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/47] libsemanage-0:3.7-3.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [47/47] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/48] libxcrypt-0:4.4.36-10.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [48/48] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/49] setup-0:2.15.0-5.fc41.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [49/49] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/50] binutils-0:2.43.50-7.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [50/50] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/51] debugedit-0:5.1-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [51/51] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/52] elfutils-0:0.192-6.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [52/52] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/53] elfutils-libelf-0:0.192-6.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [53/53] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/54] file-0:5.45-7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [54/54] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/55] libarchive-0:3.7.7-1.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [55/55] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/56] pkgconf-pkg-config-0:2.3.0-1.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [56/56] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/57] popt-0:1.19-7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [57/57] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/58] rpm-0:4.20.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [58/58] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/59] rpm-build-libs-0:4.20.0-1.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [59/59] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/60] rpm-libs-0:4.20.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [60/60] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/61] zstd-0:1.5.6-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [61/61] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/62] curl-0:8.10.1-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [62/62] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/63] glibc-gconv-extra-0:2.40.9000-1 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [63/63] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/64] ansible-srpm-macros-0:1-16.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [64/64] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/65] build-reproducibility-srpm-macr 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [65/65] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/66] dwz-0:0.15-8.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [66/66] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/67] efi-srpm-macros-0:5-12.fc41.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [67/67] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/68] fonts-srpm-macros-1:2.0.5-17.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [68/68] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/69] forge-srpm-macros-0:0.4.0-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [69/69] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/70] fpc-srpm-macros-0:1.3-13.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [70/70] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/71] ghc-srpm-macros-0:1.9.2-1.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [71/71] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/72] gnat-srpm-macros-0:6-6.fc41.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [72/72] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/73] go-srpm-macros-0:3.6.0-3.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [73/73] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/74] kernel-srpm-macros-0:1.0-24.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [74/74] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/75] lua-srpm-macros-0:1-14.fc41.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [75/75] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/76] ocaml-srpm-macros-0:10-3.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [76/76] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/77] openblas-srpm-macros-0:2-18.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [77/77] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/78] package-notes-srpm-macros-0:0.5 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [78/78] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/79] perl-srpm-macros-0:1-56.fc41.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [79/79] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/80] pyproject-srpm-macros-0:1.16.2- 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [80/80] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/81] python-srpm-macros-0:3.13-3.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [81/81] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/82] qt5-srpm-macros-0:5.15.15-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [82/82] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/83] qt6-srpm-macros-0:6.8.0-1.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [83/83] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/84] rust-srpm-macros-0:26.3-3.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [84/84] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/85] zig-srpm-macros-0:1-3.fc41.noar 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [85/85] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/86] zip-0:3.0-41.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [86/86] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/87] pkgconf-0:2.3.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [87/87] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/88] pkgconf-m4-0:2.3.0-1.fc42.noarc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [88/88] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/89] libpkgconf-0:2.3.0-1.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [89/89] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/90] ed-0:1.20.2-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [90/90] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/91] authselect-0:1.5.0-8.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [91/91] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/92] gdbm-1:1.23-7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [92/92] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/93] gdbm-libs-1:1.23-7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [93/93] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/94] libnsl2-0:2.0.1-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [94/94] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/95] libpwquality-0:1.4.5-11.fc41.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [95/95] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/96] libtirpc-0:1.3.6-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [96/96] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/97] openssl-libs-1:3.2.2-8.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [97/97] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/98] ca-certificates-0:2024.2.69_v8. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [98/98] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/99] crypto-policies-0:20241106-1.gi 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [99/99] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/100] ncurses-base-0:6.5-2.20240629 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [100/100] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/101] krb5-libs-0:1.21.3-3.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [101/101] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/102] libcom_err-0:1.47.1-6.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [102/102] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/103] libsepol-0:3.7-3.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [103/103] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/104] pcre2-0:10.44-1.fc41.1.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [104/104] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/105] cracklib-0:2.9.11-6.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [105/105] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/106] libxml2-0:2.12.8-2.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [106/106] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/107] libzstd-0:1.5.6-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [107/107] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/108] lz4-libs-0:1.10.0-1.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [108/108] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/109] keyutils-libs-0:1.6.3-4.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [109/109] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/110] libverto-0:0.3.2-9.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [110/110] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/111] glibc-common-0:2.40.9000-18.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [111/111] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/112] basesystem-0:11-21.fc41.noarc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [112/112] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/113] filesystem-0:3.18-29.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [113/113] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/114] gmp-1:6.3.0-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [114/114] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/115] mpfr-0:4.2.1-5.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [115/115] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/116] file-libs-0:5.45-7.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [116/116] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/117] fedora-repos-0:42-0.3.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [117/117] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/118] elfutils-debuginfod-client-0: 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [118/118] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/119] elfutils-libs-0:0.192-6.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [119/119] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/120] libstdc++-0:14.2.1-6.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [120/120] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/121] coreutils-common-0:9.5-11.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [121/121] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/122] libffi-0:3.4.6-3.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [122/122] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/123] p11-kit-0:0.25.5-4.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [123/123] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/124] p11-kit-trust-0:0.25.5-4.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [124/124] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/125] add-determinism-0:0.4.3-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [125/125] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/126] alternatives-0:1.30-1.fc41.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [126/126] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/127] jansson-0:2.14-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [127/127] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/128] perl-interpreter-4:5.40.0-512 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [128/128] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/129] lua-libs-0:5.4.7-1.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [129/129] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/130] rpm-sequoia-0:1.7.0-2.fc41.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [130/130] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/131] sqlite-libs-0:3.47.0-1.fc42.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [131/131] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/132] libgomp-0:14.2.1-6.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [132/132] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/133] perl-libs-4:5.40.0-512.fc42.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [133/133] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/134] pcre2-syntax-0:10.44-1.fc41.1 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [134/134] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/135] libtasn1-0:4.19.0-9.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [135/135] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/136] fedora-gpg-keys-0:42-0.3.noar 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [136/136] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/137] fedora-repos-rawhide-0:42-0.3 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [137/137] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/138] elfutils-default-yama-scope-0 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [138/138] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/139] json-c-0:0.18-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [139/139] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/140] perl-Carp-0:1.54-511.fc41.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [140/140] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/141] perl-DynaLoader-0:1.56-512.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [141/141] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/142] perl-Encode-4:3.21-511.fc41.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [142/142] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/143] perl-Exporter-0:5.78-511.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [143/143] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/144] perl-PathTools-0:3.91-511.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [144/144] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/145] perl-Errno-0:1.38-512.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [145/145] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/146] perl-Scalar-List-Utils-5:1.68 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [146/146] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/147] perl-constant-0:1.33-512.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [147/147] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/148] perl-File-Basename-0:2.86-512 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [148/148] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/149] perl-Getopt-Long-1:2.58-2.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [149/149] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/150] perl-Getopt-Std-0:1.14-512.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [150/150] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/151] perl-MIME-Base64-0:3.16-511.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [151/151] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/152] perl-Storable-1:3.32-511.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [152/152] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/153] perl-overload-0:1.37-512.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [153/153] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/154] perl-parent-1:0.242-1.fc42.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [154/154] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/155] perl-vars-0:1.05-512.fc42.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [155/155] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/156] perl-mro-0:1.29-512.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [156/156] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/157] perl-overloading-0:0.02-512.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [157/157] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/158] perl-Fcntl-0:1.18-512.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [158/158] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/159] perl-IO-0:1.55-512.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [159/159] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/160] perl-File-stat-0:1.14-512.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [160/160] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/161] perl-SelectSaver-0:1.02-512.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [161/161] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/162] perl-Socket-4:2.038-511.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [162/162] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/163] perl-Symbol-0:1.09-512.fc42.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [163/163] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/164] perl-Pod-Usage-4:2.03-511.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [164/164] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/165] perl-Text-ParseWords-0:3.31-5 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [165/165] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/166] perl-base-0:2.27-512.fc42.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [166/166] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/167] perl-Class-Struct-0:0.68-512. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [167/167] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/168] perl-Pod-Perldoc-0:3.28.01-51 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [168/168] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/169] perl-podlators-1:6.0.2-2.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [169/169] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/170] groff-base-0:1.23.0-7.fc41.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [170/170] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/171] perl-File-Temp-1:0.231.100-51 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [171/171] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/172] perl-HTTP-Tiny-0:0.090-1.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [172/172] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/173] perl-IPC-Open3-0:1.22-512.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [173/173] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/174] perl-Pod-Simple-1:3.45-511.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [174/174] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/175] perl-POSIX-0:2.20-512.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [175/175] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/176] perl-IO-Socket-SSL-0:2.089-1. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [176/176] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/177] perl-Net-SSLeay-0:1.94-7.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [177/177] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/178] perl-Time-Local-2:1.350-511.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [178/178] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/179] perl-File-Path-0:2.18-511.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [179/179] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/180] perl-Term-ANSIColor-0:5.01-51 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [180/180] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/181] perl-Term-Cap-0:1.18-511.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [181/181] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/182] ncurses-0:6.5-2.20240629.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [182/182] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/183] perl-Pod-Escapes-1:1.07-511.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [183/183] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/184] perl-Text-Tabs+Wrap-0:2024.00 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [184/184] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/185] perl-if-0:0.61.000-512.fc42.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [185/185] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/186] perl-locale-0:1.12-512.fc42.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [186/186] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/187] perl-AutoLoader-0:5.74-512.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [187/187] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/188] perl-IO-Socket-IP-0:0.42-512. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [188/188] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/189] perl-URI-0:5.31-1.fc42.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [189/189] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/190] perl-Data-Dumper-0:2.189-512. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [190/190] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/191] perl-MIME-Base32-0:1.303-21.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [191/191] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/192] perl-libnet-0:3.15-512.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [192/192] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/193] perl-B-0:1.89-512.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [193/193] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/194] perl-Digest-MD5-0:2.59-5.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [194/194] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/195] perl-FileHandle-0:2.05-512.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [195/195] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/196] perl-Digest-0:1.20-511.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [196/196] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/197] fedora-release-0:42-0.8.noarc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [197/197] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/198] gdb-minimal-0:15.2-3.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [198/198] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/199] xxhash-libs-0:0.8.2-4.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [199/199] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/200] fedora-release-identity-basic 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [200/200] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/201] libcurl-0:8.10.1-2.fc42.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [201/201] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/202] libbrotli-0:1.1.0-5.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [202/202] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/203] libidn2-0:2.3.7-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [203/203] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/204] libnghttp2-0:1.64.0-1.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [204/204] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/205] libpsl-0:0.21.5-4.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [205/205] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/206] libssh-0:0.11.1-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [206/206] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/207] openldap-0:2.6.8-5.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [207/207] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/208] cyrus-sasl-lib-0:2.1.28-27.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [208/208] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/209] libevent-0:2.1.12-14.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [209/209] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/210] libtool-ltdl-0:2.4.7-12.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [210/210] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/211] libssh-config-0:0.11.1-1.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [211/211] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/212] libunistring-0:1.1-8.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [212/212] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/213] publicsuffix-list-dafsa-0:202 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [213/213] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [ 1/215] Verify package files 100% | 938.0 B/s | 213.0 B | 00m00s [ 2/215] Prepare transaction 100% | 2.0 KiB/s | 213.0 B | 00m00s [ 3/215] Installing libgcc-0:14.2.1-6. 100% | 132.9 MiB/s | 272.3 KiB | 00m00s [ 4/215] Installing publicsuffix-list- 100% | 66.7 MiB/s | 68.3 KiB | 00m00s [ 5/215] Installing libssh-config-0:0. 100% | 0.0 B/s | 816.0 B | 00m00s [ 6/215] Installing fedora-release-ide 100% | 0.0 B/s | 976.0 B | 00m00s [ 7/215] Installing fedora-gpg-keys-0: 100% | 21.0 MiB/s | 172.2 KiB | 00m00s [ 8/215] Installing fedora-repos-rawhi 100% | 0.0 B/s | 2.4 KiB | 00m00s [ 9/215] Installing fedora-repos-0:42- 100% | 0.0 B/s | 5.7 KiB | 00m00s [ 10/215] Installing fedora-release-com 100% | 11.7 MiB/s | 24.0 KiB | 00m00s [ 11/215] Installing fedora-release-0:4 100% | 0.0 B/s | 124.0 B | 00m00s [ 12/215] Installing setup-0:2.15.0-5.f 100% | 50.6 MiB/s | 726.1 KiB | 00m00s >>> [RPM] /etc/hosts created as /etc/hosts.rpmnew [ 13/215] Installing filesystem-0:3.18- 100% | 1.6 MiB/s | 212.6 KiB | 00m00s [ 14/215] Installing basesystem-0:11-21 100% | 0.0 B/s | 124.0 B | 00m00s [ 15/215] Installing pcre2-syntax-0:10. 100% | 124.1 MiB/s | 254.1 KiB | 00m00s [ 16/215] Installing coreutils-common-0 100% | 243.3 MiB/s | 11.2 MiB | 00m00s [ 17/215] Installing ncurses-base-0:6.5 100% | 38.2 MiB/s | 351.7 KiB | 00m00s [ 18/215] Installing glibc-minimal-lang 100% | 0.0 B/s | 124.0 B | 00m00s [ 19/215] Installing ncurses-libs-0:6.5 100% | 137.0 MiB/s | 981.8 KiB | 00m00s [ 20/215] Installing glibc-0:2.40.9000- 100% | 197.4 MiB/s | 6.7 MiB | 00m00s [ 21/215] Installing bash-0:5.2.37-1.fc 100% | 281.7 MiB/s | 8.2 MiB | 00m00s [ 22/215] Installing glibc-common-0:2.4 100% | 132.4 MiB/s | 1.1 MiB | 00m00s [ 23/215] Installing glibc-gconv-extra- 100% | 150.7 MiB/s | 8.1 MiB | 00m00s [ 24/215] Installing zlib-ng-compat-0:2 100% | 131.7 MiB/s | 134.9 KiB | 00m00s [ 25/215] Installing xz-libs-1:5.6.3-2. 100% | 214.3 MiB/s | 219.5 KiB | 00m00s [ 26/215] Installing bzip2-libs-0:1.0.8 100% | 79.9 MiB/s | 81.8 KiB | 00m00s [ 27/215] Installing libuuid-0:2.40.2-8 100% | 41.5 MiB/s | 42.5 KiB | 00m00s [ 28/215] Installing readline-0:8.2-11. 100% | 241.8 MiB/s | 495.3 KiB | 00m00s [ 29/215] Installing libxcrypt-0:4.4.36 100% | 132.0 MiB/s | 270.4 KiB | 00m00s [ 30/215] Installing popt-0:1.19-7.fc41 100% | 35.0 MiB/s | 143.5 KiB | 00m00s [ 31/215] Installing libstdc++-0:14.2.1 100% | 276.0 MiB/s | 2.8 MiB | 00m00s [ 32/215] Installing libblkid-0:2.40.2- 100% | 257.5 MiB/s | 263.6 KiB | 00m00s [ 33/215] Installing libattr-0:2.5.2-4. 100% | 0.0 B/s | 29.5 KiB | 00m00s [ 34/215] Installing libacl-0:2.3.2-2.f 100% | 39.8 MiB/s | 40.7 KiB | 00m00s [ 35/215] Installing libzstd-0:1.5.6-2. 100% | 259.5 MiB/s | 797.2 KiB | 00m00s [ 36/215] Installing elfutils-libelf-0: 100% | 291.6 MiB/s | 1.2 MiB | 00m00s [ 37/215] Installing gmp-1:6.3.0-2.fc41 100% | 264.9 MiB/s | 813.7 KiB | 00m00s [ 38/215] Installing libeconf-0:0.7.4-3 100% | 65.8 MiB/s | 67.4 KiB | 00m00s [ 39/215] Installing gdbm-libs-1:1.23-7 100% | 120.7 MiB/s | 123.6 KiB | 00m00s [ 40/215] Installing alternatives-0:1.3 100% | 66.3 MiB/s | 67.9 KiB | 00m00s [ 41/215] Installing mpfr-0:4.2.1-5.fc4 100% | 203.5 MiB/s | 833.7 KiB | 00m00s [ 42/215] Installing gawk-0:5.3.0-4.fc4 100% | 192.4 MiB/s | 1.7 MiB | 00m00s [ 43/215] Installing dwz-0:0.15-8.fc42. 100% | 146.8 MiB/s | 300.6 KiB | 00m00s [ 44/215] Installing unzip-0:6.0-64.fc4 100% | 190.6 MiB/s | 390.3 KiB | 00m00s [ 45/215] Installing file-libs-0:5.45-7 100% | 522.8 MiB/s | 9.9 MiB | 00m00s [ 46/215] Installing file-0:5.45-7.fc41 100% | 7.3 MiB/s | 105.0 KiB | 00m00s [ 47/215] Installing crypto-policies-0: 100% | 15.9 MiB/s | 163.3 KiB | 00m00s [ 48/215] Installing libcap-ng-0:0.8.5- 100% | 69.4 MiB/s | 71.0 KiB | 00m00s [ 49/215] Installing audit-libs-0:4.0.2 100% | 162.8 MiB/s | 333.4 KiB | 00m00s [ 50/215] Installing pam-libs-0:1.7.0-2 100% | 126.8 MiB/s | 129.9 KiB | 00m00s [ 51/215] Installing libcap-0:2.71-1.fc 100% | 70.3 MiB/s | 215.8 KiB | 00m00s [ 52/215] Installing systemd-libs-0:257 100% | 251.0 MiB/s | 2.3 MiB | 00m00s [ 53/215] Installing libsmartcols-0:2.4 100% | 177.1 MiB/s | 181.4 KiB | 00m00s [ 54/215] Installing libcom_err-0:1.47. 100% | 66.7 MiB/s | 68.3 KiB | 00m00s [ 55/215] Installing libsepol-0:3.7-3.f 100% | 266.6 MiB/s | 819.0 KiB | 00m00s [ 56/215] Installing pcre2-0:10.44-1.fc 100% | 213.2 MiB/s | 654.9 KiB | 00m00s [ 57/215] Installing libselinux-0:3.7-6 100% | 178.0 MiB/s | 182.3 KiB | 00m00s [ 58/215] Installing sed-0:4.9-3.fc41.x 100% | 121.3 MiB/s | 869.7 KiB | 00m00s [ 59/215] Installing findutils-1:4.10.0 100% | 185.8 MiB/s | 1.9 MiB | 00m00s [ 60/215] Installing grep-0:3.11-9.fc41 100% | 125.4 MiB/s | 1.0 MiB | 00m00s [ 61/215] Installing xz-1:5.6.3-2.fc42. 100% | 137.5 MiB/s | 1.2 MiB | 00m00s [ 62/215] Installing libmount-0:2.40.2- 100% | 174.3 MiB/s | 356.9 KiB | 00m00s [ 63/215] Installing lz4-libs-0:1.10.0- 100% | 143.1 MiB/s | 146.6 KiB | 00m00s [ 64/215] Installing libffi-0:3.4.6-3.f 100% | 85.7 MiB/s | 87.8 KiB | 00m00s [ 65/215] Installing lua-libs-0:5.4.7-1 100% | 139.7 MiB/s | 286.2 KiB | 00m00s [ 66/215] Installing libtasn1-0:4.19.0- 100% | 173.3 MiB/s | 177.5 KiB | 00m00s [ 67/215] Installing p11-kit-0:0.25.5-4 100% | 158.3 MiB/s | 2.2 MiB | 00m00s [ 68/215] Installing libunistring-0:1.1 100% | 173.1 MiB/s | 1.7 MiB | 00m00s [ 69/215] Installing libidn2-0:2.3.7-2. 100% | 81.8 MiB/s | 335.1 KiB | 00m00s [ 70/215] Installing libpsl-0:0.21.5-4. 100% | 79.7 MiB/s | 81.7 KiB | 00m00s [ 71/215] Installing p11-kit-trust-0:0. 100% | 24.8 MiB/s | 405.5 KiB | 00m00s [ 72/215] Installing openssl-libs-1:3.2 100% | 289.9 MiB/s | 7.8 MiB | 00m00s [ 73/215] Installing coreutils-0:9.5-11 100% | 150.0 MiB/s | 5.4 MiB | 00m00s [ 74/215] Installing ca-certificates-0: 100% | 1.1 MiB/s | 2.4 MiB | 00m02s [ 75/215] Installing gzip-0:1.13-2.fc41 100% | 96.3 MiB/s | 394.6 KiB | 00m00s [ 76/215] Installing authselect-libs-0: 100% | 81.8 MiB/s | 837.2 KiB | 00m00s [ 77/215] Installing cracklib-0:2.9.11- 100% | 34.9 MiB/s | 250.3 KiB | 00m00s [ 78/215] Installing libpwquality-0:1.4 100% | 52.5 MiB/s | 430.1 KiB | 00m00s [ 79/215] Installing rpm-sequoia-0:1.7. 100% | 263.0 MiB/s | 2.4 MiB | 00m00s [ 80/215] Installing libevent-0:2.1.12- 100% | 219.6 MiB/s | 899.5 KiB | 00m00s [ 81/215] Installing zstd-0:1.5.6-2.fc4 100% | 281.9 MiB/s | 1.7 MiB | 00m00s [ 82/215] Installing util-linux-core-0: 100% | 138.9 MiB/s | 1.5 MiB | 00m00s [ 83/215] Installing tar-2:1.35-4.fc41. 100% | 227.6 MiB/s | 3.0 MiB | 00m00s [ 84/215] Installing libsemanage-0:3.7- 100% | 97.6 MiB/s | 299.8 KiB | 00m00s [ 85/215] Installing shadow-utils-2:4.1 100% | 113.7 MiB/s | 4.1 MiB | 00m00s [ 86/215] Installing zip-0:3.0-41.fc41. 100% | 40.6 MiB/s | 707.1 KiB | 00m00s [ 87/215] Installing groff-base-0:1.23. 100% | 110.7 MiB/s | 3.9 MiB | 00m00s [ 88/215] Installing gdbm-1:1.23-7.fc41 100% | 91.0 MiB/s | 465.8 KiB | 00m00s [ 89/215] Installing cyrus-sasl-lib-0:2 100% | 230.6 MiB/s | 2.3 MiB | 00m00s [ 90/215] Installing libfdisk-0:2.40.2- 100% | 177.7 MiB/s | 364.0 KiB | 00m00s [ 91/215] Installing bzip2-0:1.0.8-19.f 100% | 48.9 MiB/s | 100.2 KiB | 00m00s [ 92/215] Installing libxml2-0:2.12.8-2 100% | 214.0 MiB/s | 1.7 MiB | 00m00s [ 93/215] Installing libarchive-0:3.7.7 100% | 228.1 MiB/s | 934.2 KiB | 00m00s [ 94/215] Installing add-determinism-0: 100% | 270.1 MiB/s | 2.4 MiB | 00m00s [ 95/215] Installing build-reproducibil 100% | 0.0 B/s | 1.0 KiB | 00m00s [ 96/215] Installing sqlite-libs-0:3.47 100% | 242.2 MiB/s | 1.5 MiB | 00m00s [ 97/215] Installing rpm-libs-0:4.20.0- 100% | 236.9 MiB/s | 727.7 KiB | 00m00s [ 98/215] Installing ed-0:1.20.2-2.fc41 100% | 72.8 MiB/s | 149.2 KiB | 00m00s [ 99/215] Installing patch-0:2.7.6-25.f 100% | 131.0 MiB/s | 268.2 KiB | 00m00s [100/215] Installing elfutils-default-y 100% | 204.3 KiB/s | 2.0 KiB | 00m00s [101/215] Installing elfutils-libs-0:0. 100% | 164.7 MiB/s | 674.7 KiB | 00m00s [102/215] Installing cpio-0:2.15-2.fc41 100% | 157.1 MiB/s | 1.1 MiB | 00m00s [103/215] Installing diffutils-0:3.10-8 100% | 159.0 MiB/s | 1.6 MiB | 00m00s [104/215] Installing libpkgconf-0:2.3.0 100% | 77.5 MiB/s | 79.3 KiB | 00m00s [105/215] Installing pkgconf-0:2.3.0-1. 100% | 44.5 MiB/s | 91.1 KiB | 00m00s [106/215] Installing keyutils-libs-0:1. 100% | 54.5 MiB/s | 55.8 KiB | 00m00s [107/215] Installing libverto-0:0.3.2-9 100% | 30.5 MiB/s | 31.3 KiB | 00m00s [108/215] Installing krb5-libs-0:1.21.3 100% | 209.5 MiB/s | 2.3 MiB | 00m00s [109/215] Installing libtirpc-0:1.3.6-1 100% | 101.2 MiB/s | 207.3 KiB | 00m00s [110/215] Installing libnsl2-0:2.0.1-2. 100% | 57.7 MiB/s | 59.1 KiB | 00m00s [111/215] Installing pam-0:1.7.0-2.fc42 100% | 65.7 MiB/s | 1.7 MiB | 00m00s [112/215] Installing libssh-0:0.11.1-1. 100% | 186.1 MiB/s | 571.7 KiB | 00m00s [113/215] Installing jansson-0:2.14-1.f 100% | 92.3 MiB/s | 94.5 KiB | 00m00s [114/215] Installing libgomp-0:14.2.1-6 100% | 254.5 MiB/s | 521.2 KiB | 00m00s [115/215] Installing rpm-build-libs-0:4 100% | 202.6 MiB/s | 207.5 KiB | 00m00s [116/215] Installing json-c-0:0.18-1.fc 100% | 82.6 MiB/s | 84.6 KiB | 00m00s [117/215] Installing ncurses-0:6.5-2.20 100% | 154.8 MiB/s | 633.9 KiB | 00m00s [118/215] Installing perl-Digest-0:1.20 100% | 36.2 MiB/s | 37.1 KiB | 00m00s [119/215] Installing perl-B-0:1.89-512. 100% | 163.2 MiB/s | 501.3 KiB | 00m00s [120/215] Installing perl-FileHandle-0: 100% | 0.0 B/s | 9.8 KiB | 00m00s [121/215] Installing perl-Digest-MD5-0: 100% | 60.2 MiB/s | 61.7 KiB | 00m00s [122/215] Installing perl-MIME-Base32-0 100% | 31.4 MiB/s | 32.2 KiB | 00m00s [123/215] Installing perl-Data-Dumper-0 100% | 55.5 MiB/s | 113.6 KiB | 00m00s [124/215] Installing perl-libnet-0:3.15 100% | 95.9 MiB/s | 294.7 KiB | 00m00s [125/215] Installing perl-AutoLoader-0: 100% | 0.0 B/s | 20.9 KiB | 00m00s [126/215] Installing perl-IO-Socket-IP- 100% | 98.1 MiB/s | 100.5 KiB | 00m00s [127/215] Installing perl-URI-0:5.31-1. 100% | 43.9 MiB/s | 269.6 KiB | 00m00s [128/215] Installing perl-Time-Local-2: 100% | 68.9 MiB/s | 70.6 KiB | 00m00s [129/215] Installing perl-File-Path-0:2 100% | 63.0 MiB/s | 64.5 KiB | 00m00s [130/215] Installing perl-Pod-Escapes-1 100% | 25.3 MiB/s | 25.9 KiB | 00m00s [131/215] Installing perl-Text-Tabs+Wra 100% | 23.3 MiB/s | 23.9 KiB | 00m00s [132/215] Installing perl-if-0:0.61.000 100% | 0.0 B/s | 6.2 KiB | 00m00s [133/215] Installing perl-locale-0:1.12 100% | 6.7 MiB/s | 6.9 KiB | 00m00s [134/215] Installing perl-Net-SSLeay-0: 100% | 151.4 MiB/s | 1.4 MiB | 00m00s [135/215] Installing perl-IO-Socket-SSL 100% | 172.7 MiB/s | 707.4 KiB | 00m00s [136/215] Installing perl-Class-Struct- 100% | 0.0 B/s | 25.9 KiB | 00m00s [137/215] Installing perl-Term-ANSIColo 100% | 96.9 MiB/s | 99.2 KiB | 00m00s [138/215] Installing perl-Term-Cap-0:1. 100% | 29.9 MiB/s | 30.6 KiB | 00m00s [139/215] Installing perl-File-Temp-1:0 100% | 160.2 MiB/s | 164.1 KiB | 00m00s [140/215] Installing perl-IPC-Open3-0:1 100% | 22.7 MiB/s | 23.3 KiB | 00m00s [141/215] Installing perl-POSIX-0:2.20- 100% | 115.4 MiB/s | 236.4 KiB | 00m00s [142/215] Installing perl-HTTP-Tiny-0:0 100% | 76.4 MiB/s | 156.4 KiB | 00m00s [143/215] Installing perl-Pod-Simple-1: 100% | 139.3 MiB/s | 570.5 KiB | 00m00s [144/215] Installing perl-Socket-4:2.03 100% | 123.1 MiB/s | 126.1 KiB | 00m00s [145/215] Installing perl-SelectSaver-0 100% | 0.0 B/s | 2.6 KiB | 00m00s [146/215] Installing perl-Symbol-0:1.09 100% | 0.0 B/s | 7.2 KiB | 00m00s [147/215] Installing perl-File-stat-0:1 100% | 12.7 MiB/s | 13.1 KiB | 00m00s [148/215] Installing perl-podlators-1:6 100% | 157.0 MiB/s | 321.4 KiB | 00m00s [149/215] Installing perl-Pod-Perldoc-0 100% | 82.6 MiB/s | 169.3 KiB | 00m00s [150/215] Installing perl-mro-0:1.29-51 100% | 45.6 MiB/s | 46.7 KiB | 00m00s [151/215] Installing perl-overloading-0 100% | 0.0 B/s | 5.5 KiB | 00m00s [152/215] Installing perl-Fcntl-0:1.18- 100% | 48.9 MiB/s | 50.1 KiB | 00m00s [153/215] Installing perl-Text-ParseWor 100% | 14.2 MiB/s | 14.6 KiB | 00m00s [154/215] Installing perl-base-0:2.27-5 100% | 12.6 MiB/s | 12.9 KiB | 00m00s [155/215] Installing perl-IO-0:1.55-512 100% | 75.8 MiB/s | 155.2 KiB | 00m00s [156/215] Installing perl-Pod-Usage-4:2 100% | 84.3 MiB/s | 86.3 KiB | 00m00s [157/215] Installing perl-Errno-0:1.38- 100% | 8.6 MiB/s | 8.8 KiB | 00m00s [158/215] Installing perl-Scalar-List-U 100% | 74.5 MiB/s | 152.6 KiB | 00m00s [159/215] Installing perl-constant-0:1. 100% | 26.7 MiB/s | 27.4 KiB | 00m00s [160/215] Installing perl-File-Basename 100% | 0.0 B/s | 14.6 KiB | 00m00s [161/215] Installing perl-Getopt-Std-0: 100% | 0.0 B/s | 11.7 KiB | 00m00s [162/215] Installing perl-MIME-Base64-0 100% | 47.2 MiB/s | 48.4 KiB | 00m00s [163/215] Installing perl-parent-1:0.24 100% | 10.5 MiB/s | 10.7 KiB | 00m00s [164/215] Installing perl-vars-0:1.05-5 100% | 0.0 B/s | 4.3 KiB | 00m00s [165/215] Installing perl-overload-0:1. 100% | 70.3 MiB/s | 71.9 KiB | 00m00s [166/215] Installing perl-Storable-1:3. 100% | 114.3 MiB/s | 234.0 KiB | 00m00s [167/215] Installing perl-Getopt-Long-1 100% | 143.8 MiB/s | 147.2 KiB | 00m00s [168/215] Installing perl-Carp-0:1.54-5 100% | 46.6 MiB/s | 47.7 KiB | 00m00s [169/215] Installing perl-Exporter-0:5. 100% | 54.3 MiB/s | 55.6 KiB | 00m00s [170/215] Installing perl-PathTools-0:3 100% | 90.1 MiB/s | 184.6 KiB | 00m00s [171/215] Installing perl-DynaLoader-0: 100% | 31.7 MiB/s | 32.5 KiB | 00m00s [172/215] Installing perl-Encode-4:3.21 100% | 235.9 MiB/s | 4.7 MiB | 00m00s [173/215] Installing perl-libs-4:5.40.0 100% | 160.9 MiB/s | 10.0 MiB | 00m00s [174/215] Installing perl-interpreter-4 100% | 30.3 MiB/s | 124.0 KiB | 00m00s [175/215] Installing xxhash-libs-0:0.8. 100% | 87.7 MiB/s | 89.8 KiB | 00m00s [176/215] Installing libbrotli-0:1.1.0- 100% | 205.0 MiB/s | 839.9 KiB | 00m00s [177/215] Installing libnghttp2-0:1.64. 100% | 171.5 MiB/s | 175.6 KiB | 00m00s [178/215] Installing libtool-ltdl-0:2.4 100% | 65.7 MiB/s | 67.3 KiB | 00m00s [179/215] Installing openldap-0:2.6.8-5 100% | 158.2 MiB/s | 648.0 KiB | 00m00s [180/215] Installing libcurl-0:8.10.1-2 100% | 205.0 MiB/s | 839.5 KiB | 00m00s [181/215] Installing elfutils-debuginfo 100% | 40.3 MiB/s | 82.6 KiB | 00m00s [182/215] Installing binutils-0:2.43.50 100% | 274.2 MiB/s | 28.5 MiB | 00m00s [183/215] Installing elfutils-0:0.192-6 100% | 139.2 MiB/s | 2.6 MiB | 00m00s [184/215] Installing gdb-minimal-0:15.2 100% | 324.8 MiB/s | 13.0 MiB | 00m00s [185/215] Installing debugedit-0:5.1-1. 100% | 95.4 MiB/s | 195.4 KiB | 00m00s [186/215] Installing curl-0:8.10.1-2.fc 100% | 19.4 MiB/s | 455.8 KiB | 00m00s [187/215] Installing rpm-0:4.20.0-1.fc4 100% | 92.8 MiB/s | 2.5 MiB | 00m00s [188/215] Installing efi-srpm-macros-0: 100% | 40.2 MiB/s | 41.2 KiB | 00m00s [189/215] Installing lua-srpm-macros-0: 100% | 1.9 MiB/s | 1.9 KiB | 00m00s [190/215] Installing zig-srpm-macros-0: 100% | 0.0 B/s | 1.7 KiB | 00m00s [191/215] Installing pkgconf-m4-0:2.3.0 100% | 0.0 B/s | 14.8 KiB | 00m00s [192/215] Installing pkgconf-pkg-config 100% | 0.0 B/s | 1.8 KiB | 00m00s [193/215] Installing rust-srpm-macros-0 100% | 0.0 B/s | 5.6 KiB | 00m00s [194/215] Installing qt6-srpm-macros-0: 100% | 0.0 B/s | 732.0 B | 00m00s [195/215] Installing qt5-srpm-macros-0: 100% | 0.0 B/s | 776.0 B | 00m00s [196/215] Installing perl-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [197/215] Installing package-notes-srpm 100% | 0.0 B/s | 2.0 KiB | 00m00s [198/215] Installing openblas-srpm-macr 100% | 0.0 B/s | 392.0 B | 00m00s [199/215] Installing ocaml-srpm-macros- 100% | 0.0 B/s | 2.2 KiB | 00m00s [200/215] Installing kernel-srpm-macros 100% | 0.0 B/s | 2.3 KiB | 00m00s [201/215] Installing gnat-srpm-macros-0 100% | 0.0 B/s | 1.3 KiB | 00m00s [202/215] Installing ghc-srpm-macros-0: 100% | 0.0 B/s | 1.0 KiB | 00m00s [203/215] Installing fpc-srpm-macros-0: 100% | 0.0 B/s | 420.0 B | 00m00s [204/215] Installing ansible-srpm-macro 100% | 0.0 B/s | 36.2 KiB | 00m00s [205/215] Installing fonts-srpm-macros- 100% | 55.7 MiB/s | 57.0 KiB | 00m00s [206/215] Installing forge-srpm-macros- 100% | 39.3 MiB/s | 40.3 KiB | 00m00s [207/215] Installing go-srpm-macros-0:3 100% | 60.5 MiB/s | 62.0 KiB | 00m00s [208/215] Installing python-srpm-macros 100% | 50.9 MiB/s | 52.2 KiB | 00m00s [209/215] Installing redhat-rpm-config- 100% | 62.9 MiB/s | 193.2 KiB | 00m00s [210/215] Installing rpm-build-0:4.20.0 100% | 66.1 MiB/s | 202.9 KiB | 00m00s [211/215] Installing pyproject-srpm-mac 100% | 2.4 MiB/s | 2.5 KiB | 00m00s [212/215] Installing util-linux-0:2.40. 100% | 92.9 MiB/s | 3.7 MiB | 00m00s [213/215] Installing authselect-0:1.5.0 100% | 39.5 MiB/s | 161.9 KiB | 00m00s [214/215] Installing which-0:2.21-42.fc 100% | 80.5 MiB/s | 82.4 KiB | 00m00s [215/215] Installing info-0:7.1.1-2.fc4 100% | 129.7 KiB/s | 362.2 KiB | 00m03s Warning: skipped PGP checks for 213 packages from repository: https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 Complete! Finish: installing minimal buildroot with dnf5 Start: creating root cache Finish: creating root cache Finish: chroot init INFO: Installed packages: INFO: add-determinism-0.4.3-1.fc42.x86_64 alternatives-1.30-1.fc41.x86_64 ansible-srpm-macros-1-16.fc41.noarch audit-libs-4.0.2-1.fc41.x86_64 authselect-1.5.0-8.fc42.x86_64 authselect-libs-1.5.0-8.fc42.x86_64 basesystem-11-21.fc41.noarch bash-5.2.37-1.fc42.x86_64 binutils-2.43.50-7.fc42.x86_64 build-reproducibility-srpm-macros-0.4.3-1.fc42.noarch bzip2-1.0.8-19.fc41.x86_64 bzip2-libs-1.0.8-19.fc41.x86_64 ca-certificates-2024.2.69_v8.0.401-2.fc42.noarch coreutils-9.5-11.fc42.x86_64 coreutils-common-9.5-11.fc42.x86_64 cpio-2.15-2.fc41.x86_64 cracklib-2.9.11-6.fc41.x86_64 crypto-policies-20241106-1.git35892de.fc42.noarch curl-8.10.1-2.fc42.x86_64 cyrus-sasl-lib-2.1.28-27.fc41.x86_64 debugedit-5.1-1.fc42.x86_64 diffutils-3.10-8.fc41.x86_64 dwz-0.15-8.fc42.x86_64 ed-1.20.2-2.fc41.x86_64 efi-srpm-macros-5-12.fc41.noarch elfutils-0.192-6.fc42.x86_64 elfutils-debuginfod-client-0.192-6.fc42.x86_64 elfutils-default-yama-scope-0.192-6.fc42.noarch elfutils-libelf-0.192-6.fc42.x86_64 elfutils-libs-0.192-6.fc42.x86_64 fedora-gpg-keys-42-0.3.noarch fedora-release-42-0.8.noarch fedora-release-common-42-0.8.noarch fedora-release-identity-basic-42-0.8.noarch fedora-repos-42-0.3.noarch fedora-repos-rawhide-42-0.3.noarch file-5.45-7.fc41.x86_64 file-libs-5.45-7.fc41.x86_64 filesystem-3.18-29.fc42.x86_64 findutils-4.10.0-4.fc41.x86_64 fonts-srpm-macros-2.0.5-17.fc41.noarch forge-srpm-macros-0.4.0-1.fc42.noarch fpc-srpm-macros-1.3-13.fc41.noarch gawk-5.3.0-4.fc41.x86_64 gdb-minimal-15.2-3.fc42.x86_64 gdbm-1.23-7.fc41.x86_64 gdbm-libs-1.23-7.fc41.x86_64 ghc-srpm-macros-1.9.2-1.fc42.noarch glibc-2.40.9000-18.fc42.x86_64 glibc-common-2.40.9000-18.fc42.x86_64 glibc-gconv-extra-2.40.9000-18.fc42.x86_64 glibc-minimal-langpack-2.40.9000-18.fc42.x86_64 gmp-6.3.0-2.fc41.x86_64 gnat-srpm-macros-6-6.fc41.noarch go-srpm-macros-3.6.0-3.fc41.noarch grep-3.11-9.fc41.x86_64 groff-base-1.23.0-7.fc41.x86_64 gzip-1.13-2.fc41.x86_64 info-7.1.1-2.fc42.x86_64 jansson-2.14-1.fc42.x86_64 json-c-0.18-1.fc42.x86_64 kernel-srpm-macros-1.0-24.fc41.noarch keyutils-libs-1.6.3-4.fc41.x86_64 krb5-libs-1.21.3-3.fc42.x86_64 libacl-2.3.2-2.fc41.x86_64 libarchive-3.7.7-1.fc42.x86_64 libattr-2.5.2-4.fc41.x86_64 libblkid-2.40.2-8.fc42.x86_64 libbrotli-1.1.0-5.fc41.x86_64 libcap-2.71-1.fc42.x86_64 libcap-ng-0.8.5-3.fc41.x86_64 libcom_err-1.47.1-6.fc42.x86_64 libcurl-8.10.1-2.fc42.x86_64 libeconf-0.7.4-3.fc42.x86_64 libevent-2.1.12-14.fc41.x86_64 libfdisk-2.40.2-8.fc42.x86_64 libffi-3.4.6-3.fc42.x86_64 libgcc-14.2.1-6.fc42.x86_64 libgomp-14.2.1-6.fc42.x86_64 libidn2-2.3.7-2.fc41.x86_64 libmount-2.40.2-8.fc42.x86_64 libnghttp2-1.64.0-1.fc42.x86_64 libnsl2-2.0.1-2.fc41.x86_64 libpkgconf-2.3.0-1.fc42.x86_64 libpsl-0.21.5-4.fc41.x86_64 libpwquality-1.4.5-11.fc41.x86_64 libselinux-3.7-6.fc42.x86_64 libsemanage-3.7-3.fc42.x86_64 libsepol-3.7-3.fc42.x86_64 libsmartcols-2.40.2-8.fc42.x86_64 libssh-0.11.1-1.fc42.x86_64 libssh-config-0.11.1-1.fc42.noarch libstdc++-14.2.1-6.fc42.x86_64 libtasn1-4.19.0-9.fc41.x86_64 libtirpc-1.3.6-1.fc42.x86_64 libtool-ltdl-2.4.7-12.fc41.x86_64 libunistring-1.1-8.fc41.x86_64 libuuid-2.40.2-8.fc42.x86_64 libverto-0.3.2-9.fc41.x86_64 libxcrypt-4.4.36-10.fc42.x86_64 libxml2-2.12.8-2.fc41.x86_64 libzstd-1.5.6-2.fc41.x86_64 lua-libs-5.4.7-1.fc42.x86_64 lua-srpm-macros-1-14.fc41.noarch lz4-libs-1.10.0-1.fc41.x86_64 mpfr-4.2.1-5.fc41.x86_64 ncurses-6.5-2.20240629.fc41.x86_64 ncurses-base-6.5-2.20240629.fc41.noarch ncurses-libs-6.5-2.20240629.fc41.x86_64 ocaml-srpm-macros-10-3.fc41.noarch openblas-srpm-macros-2-18.fc41.noarch openldap-2.6.8-5.fc41.x86_64 openssl-libs-3.2.2-8.fc42.x86_64 p11-kit-0.25.5-4.fc42.x86_64 p11-kit-trust-0.25.5-4.fc42.x86_64 package-notes-srpm-macros-0.5-12.fc41.noarch pam-1.7.0-2.fc42.x86_64 pam-libs-1.7.0-2.fc42.x86_64 patch-2.7.6-25.fc41.x86_64 pcre2-10.44-1.fc41.1.x86_64 pcre2-syntax-10.44-1.fc41.1.noarch perl-AutoLoader-5.74-512.fc42.noarch perl-B-1.89-512.fc42.x86_64 perl-Carp-1.54-511.fc41.noarch perl-Class-Struct-0.68-512.fc42.noarch perl-Data-Dumper-2.189-512.fc41.x86_64 perl-Digest-1.20-511.fc41.noarch perl-Digest-MD5-2.59-5.fc41.x86_64 perl-DynaLoader-1.56-512.fc42.x86_64 perl-Encode-3.21-511.fc41.x86_64 perl-Errno-1.38-512.fc42.x86_64 perl-Exporter-5.78-511.fc41.noarch perl-Fcntl-1.18-512.fc42.x86_64 perl-File-Basename-2.86-512.fc42.noarch perl-File-Path-2.18-511.fc41.noarch perl-File-Temp-0.231.100-511.fc41.noarch perl-File-stat-1.14-512.fc42.noarch perl-FileHandle-2.05-512.fc42.noarch perl-Getopt-Long-2.58-2.fc41.noarch perl-Getopt-Std-1.14-512.fc42.noarch perl-HTTP-Tiny-0.090-1.fc42.noarch perl-IO-1.55-512.fc42.x86_64 perl-IO-Socket-IP-0.42-512.fc41.noarch perl-IO-Socket-SSL-2.089-1.fc42.noarch perl-IPC-Open3-1.22-512.fc42.noarch perl-MIME-Base32-1.303-21.fc41.noarch perl-MIME-Base64-3.16-511.fc41.x86_64 perl-Net-SSLeay-1.94-7.fc41.x86_64 perl-POSIX-2.20-512.fc42.x86_64 perl-PathTools-3.91-511.fc41.x86_64 perl-Pod-Escapes-1.07-511.fc41.noarch perl-Pod-Perldoc-3.28.01-512.fc41.noarch perl-Pod-Simple-3.45-511.fc41.noarch perl-Pod-Usage-2.03-511.fc41.noarch perl-Scalar-List-Utils-1.68-1.fc42.x86_64 perl-SelectSaver-1.02-512.fc42.noarch perl-Socket-2.038-511.fc41.x86_64 perl-Storable-3.32-511.fc41.x86_64 perl-Symbol-1.09-512.fc42.noarch perl-Term-ANSIColor-5.01-512.fc41.noarch perl-Term-Cap-1.18-511.fc41.noarch perl-Text-ParseWords-3.31-511.fc41.noarch perl-Text-Tabs+Wrap-2024.001-511.fc41.noarch perl-Time-Local-1.350-511.fc41.noarch perl-URI-5.31-1.fc42.noarch perl-base-2.27-512.fc42.noarch perl-constant-1.33-512.fc41.noarch perl-if-0.61.000-512.fc42.noarch perl-interpreter-5.40.0-512.fc42.x86_64 perl-libnet-3.15-512.fc41.noarch perl-libs-5.40.0-512.fc42.x86_64 perl-locale-1.12-512.fc42.noarch perl-mro-1.29-512.fc42.x86_64 perl-overload-1.37-512.fc42.noarch perl-overloading-0.02-512.fc42.noarch perl-parent-0.242-1.fc42.noarch perl-podlators-6.0.2-2.fc41.noarch perl-srpm-macros-1-56.fc41.noarch perl-vars-1.05-512.fc42.noarch pkgconf-2.3.0-1.fc42.x86_64 pkgconf-m4-2.3.0-1.fc42.noarch pkgconf-pkg-config-2.3.0-1.fc42.x86_64 popt-1.19-7.fc41.x86_64 publicsuffix-list-dafsa-20240107-4.fc41.noarch pyproject-srpm-macros-1.16.2-1.fc42.noarch python-srpm-macros-3.13-3.fc41.noarch qt5-srpm-macros-5.15.15-1.fc42.noarch qt6-srpm-macros-6.8.0-1.fc42.noarch readline-8.2-11.fc42.x86_64 redhat-rpm-config-296-1.fc42.noarch rpm-4.20.0-1.fc42.x86_64 rpm-build-4.20.0-1.fc42.x86_64 rpm-build-libs-4.20.0-1.fc42.x86_64 rpm-libs-4.20.0-1.fc42.x86_64 rpm-sequoia-1.7.0-2.fc41.x86_64 rust-srpm-macros-26.3-3.fc42.noarch sed-4.9-3.fc41.x86_64 setup-2.15.0-5.fc41.noarch shadow-utils-4.16.0-7.fc42.x86_64 sqlite-libs-3.47.0-1.fc42.x86_64 systemd-libs-257~rc1-2.fc42.x86_64 tar-1.35-4.fc41.x86_64 unzip-6.0-64.fc41.x86_64 util-linux-2.40.2-8.fc42.x86_64 util-linux-core-2.40.2-8.fc42.x86_64 which-2.21-42.fc41.x86_64 xxhash-libs-0.8.2-4.fc42.x86_64 xz-5.6.3-2.fc42.x86_64 xz-libs-5.6.3-2.fc42.x86_64 zig-srpm-macros-1-3.fc41.noarch zip-3.0-41.fc41.x86_64 zlib-ng-compat-2.2.2-1.fc42.x86_64 zstd-1.5.6-2.fc41.x86_64 Start: buildsrpm Start: rpmbuild -bs Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1728259200 Wrote: /builddir/build/SRPMS/python-contourpy-1.3.0-2.fc42.src.rpm Finish: rpmbuild -bs INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1731685556.845210/root/var/log/dnf5.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names Finish: buildsrpm INFO: Done(/var/lib/copr-rpmbuild/workspace/workdir-fe5_fy3j/python-contourpy/python-contourpy.spec) Config(child) 0 minutes 23 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot INFO: Start(/var/lib/copr-rpmbuild/results/python-contourpy-1.3.0-2.fc42.src.rpm) Config(fedora-rawhide-x86_64) Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1731685556.845210/root. INFO: reusing tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1731685556.845210/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1731685556.845210/root. INFO: calling preinit hooks INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-4.20.0-1.fc42.x86_64 rpm-sequoia-1.7.0-2.fc41.x86_64 dnf5-5.2.7.0-1.fc42.x86_64 dnf5-plugins-5.2.7.0-1.fc42.x86_64 Finish: chroot init Start: build phase for python-contourpy-1.3.0-2.fc42.src.rpm Start: build setup for python-contourpy-1.3.0-2.fc42.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1728259200 Wrote: /builddir/build/SRPMS/python-contourpy-1.3.0-2.fc42.src.rpm Updating and loading repositories: Copr repository 100% | 47.7 KiB/s | 1.5 KiB | 00m00s fedora 100% | 944.7 KiB/s | 24.6 KiB | 00m00s Additional repo https_kojipkgs_fedorap 100% | 97.1 KiB/s | 3.5 KiB | 00m00s Copr repository 100% | 747.5 KiB/s | 72.5 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: gcc-c++ x86_64 14.2.1-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 38.1 MiB pyproject-rpm-macros noarch 1.16.2-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 113.8 KiB python3-devel x86_64 3.13.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.8 MiB Installing dependencies: annobin-docs noarch 12.75-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 98.2 KiB annobin-plugin-gcc x86_64 12.75-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 986.2 KiB cpp x86_64 14.2.1-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 35.0 MiB expat x86_64 2.6.4-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 285.5 KiB gcc x86_64 14.2.1-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 104.3 MiB gcc-plugin-annobin x86_64 14.2.1-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 57.6 KiB glibc-devel x86_64 2.40.9000-18.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.3 MiB kernel-headers x86_64 6.12.0-0.rc7.58.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 6.4 MiB libb2 x86_64 0.98.1-12.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 42.2 KiB libmpc x86_64 1.3.1-6.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 164.7 KiB libstdc++-devel x86_64 14.2.1-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 15.4 MiB libxcrypt-devel x86_64 4.4.36-10.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 30.5 KiB make x86_64 1:4.4.1-9.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.8 MiB mpdecimal x86_64 2.5.1-16.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 204.9 KiB python-pip-wheel noarch 24.3.1-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.2 MiB python-rpm-macros noarch 3.13-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 22.1 KiB python3 x86_64 3.13.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 31.8 KiB python3-libs x86_64 3.13.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 40.4 MiB python3-packaging noarch 24.2-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 555.7 KiB python3-rpm-generators noarch 14-11.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 81.7 KiB python3-rpm-macros noarch 3.13-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 6.4 KiB tzdata noarch 2024a-9.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.7 MiB Transaction Summary: Installing: 25 packages Total size of inbound packages is 81 MiB. Need to download 0 B. After this operation, 251 MiB extra will be used (install 251 MiB, remove 0 B). [1/1] gcc-c++-0:14.2.1-6.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [1/1] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/2] pyproject-rpm-macros-0:1.16.2-1.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [2/2] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/3] python3-devel-0:3.13.0-1.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [3/3] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/4] python3-0:3.13.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [4/4] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/5] python3-libs-0:3.13.0-1.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [5/5] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/6] python-rpm-macros-0:3.13-3.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [6/6] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/7] python3-rpm-macros-0:3.13-3.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [7/7] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/8] gcc-0:14.2.1-6.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [8/8] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/9] libmpc-0:1.3.1-6.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [9/9] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/10] libstdc++-devel-0:14.2.1-6.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [10/10] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/11] cpp-0:14.2.1-6.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [11/11] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/12] glibc-devel-0:2.40.9000-18.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [12/12] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/13] make-1:4.4.1-9.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [13/13] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/14] expat-0:2.6.4-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [14/14] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/15] libb2-0:0.98.1-12.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [15/15] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/16] mpdecimal-0:2.5.1-16.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [16/16] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/17] python-pip-wheel-0:24.3.1-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [17/17] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/18] tzdata-0:2024a-9.fc41.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [18/18] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/19] kernel-headers-0:6.12.0-0.rc7.5 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [19/19] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/20] libxcrypt-devel-0:4.4.36-10.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [20/20] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/21] python3-rpm-generators-0:14-11. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [21/21] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/22] annobin-plugin-gcc-0:12.75-1.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [22/22] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/23] gcc-plugin-annobin-0:14.2.1-6.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [23/23] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/24] annobin-docs-0:12.75-1.fc42.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [24/24] Total 100% | 0.0 B/s | 0.0 B | 00m00s [ 1/25] python3-packaging-0:24.2-2.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [25/25] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [ 1/27] Verify package files 100% | 96.0 B/s | 25.0 B | 00m00s [ 2/27] Prepare transaction 100% | 390.0 B/s | 25.0 B | 00m00s [ 3/27] Installing libmpc-0:1.3.1-6.fc4 100% | 81.1 MiB/s | 166.2 KiB | 00m00s [ 4/27] Installing python-rpm-macros-0: 100% | 22.3 MiB/s | 22.8 KiB | 00m00s [ 5/27] Installing python3-rpm-macros-0 100% | 0.0 B/s | 6.7 KiB | 00m00s [ 6/27] Installing pyproject-rpm-macros 100% | 113.0 MiB/s | 115.7 KiB | 00m00s [ 7/27] Installing cpp-0:14.2.1-6.fc42. 100% | 301.5 MiB/s | 35.0 MiB | 00m00s [ 8/27] Installing annobin-docs-0:12.75 100% | 48.5 MiB/s | 99.4 KiB | 00m00s [ 9/27] Installing kernel-headers-0:6.1 100% | 122.1 MiB/s | 6.6 MiB | 00m00s [10/27] Installing libxcrypt-devel-0:4. 100% | 16.0 MiB/s | 32.9 KiB | 00m00s [11/27] Installing glibc-devel-0:2.40.9 100% | 86.3 MiB/s | 2.3 MiB | 00m00s [12/27] Installing tzdata-0:2024a-9.fc4 100% | 28.5 MiB/s | 1.9 MiB | 00m00s [13/27] Installing python-pip-wheel-0:2 100% | 414.7 MiB/s | 1.2 MiB | 00m00s [14/27] Installing mpdecimal-0:2.5.1-16 100% | 201.2 MiB/s | 206.0 KiB | 00m00s [15/27] Installing libb2-0:0.98.1-12.fc 100% | 42.3 MiB/s | 43.3 KiB | 00m00s [16/27] Installing expat-0:2.6.4-1.fc42 100% | 46.8 MiB/s | 287.6 KiB | 00m00s [17/27] Installing python3-libs-0:3.13. 100% | 217.8 MiB/s | 40.7 MiB | 00m00s [18/27] Installing python3-0:3.13.0-1.f 100% | 16.4 MiB/s | 33.5 KiB | 00m00s [19/27] Installing python3-packaging-0: 100% | 92.4 MiB/s | 568.0 KiB | 00m00s [20/27] Installing python3-rpm-generato 100% | 81.0 MiB/s | 82.9 KiB | 00m00s [21/27] Installing make-1:4.4.1-9.fc42. 100% | 128.6 MiB/s | 1.8 MiB | 00m00s [22/27] Installing gcc-0:14.2.1-6.fc42. 100% | 319.0 MiB/s | 104.3 MiB | 00m00s [23/27] Installing libstdc++-devel-0:14 100% | 216.1 MiB/s | 15.6 MiB | 00m00s [24/27] Installing gcc-c++-0:14.2.1-6.f 100% | 300.2 MiB/s | 38.1 MiB | 00m00s [25/27] Installing annobin-plugin-gcc-0 100% | 31.1 MiB/s | 987.7 KiB | 00m00s [26/27] Installing gcc-plugin-annobin-0 100% | 1.8 MiB/s | 59.2 KiB | 00m00s [27/27] Installing python3-devel-0:3.13 100% | 8.2 MiB/s | 1.8 MiB | 00m00s Warning: skipped PGP checks for 25 packages from repository: https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 Complete! Finish: build setup for python-contourpy-1.3.0-2.fc42.src.rpm Start: rpmbuild python-contourpy-1.3.0-2.fc42.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1728259200 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.scbzBE + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.0-build + test -d /builddir/build/BUILD/python-contourpy-1.3.0-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/python-contourpy-1.3.0-build + /usr/bin/rm -rf /builddir/build/BUILD/python-contourpy-1.3.0-build + /usr/bin/mkdir -p /builddir/build/BUILD/python-contourpy-1.3.0-build + /usr/bin/mkdir -p /builddir/build/BUILD/python-contourpy-1.3.0-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7DtSYR + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.0-build + cd /builddir/build/BUILD/python-contourpy-1.3.0-build + rm -rf contourpy-1.3.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/contourpy-1.3.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd contourpy-1.3.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.NGv76s + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.0-build + cd contourpy-1.3.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.pyproject-builddir + RPM_TOXENV=py313 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/pyproject-wheeldir --output /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-buildrequires -p -x test Handling meson >= 1.2.0 from build-system.requires Requirement not satisfied: meson >= 1.2.0 Handling meson-python >= 0.13.1 from build-system.requires Requirement not satisfied: meson-python >= 0.13.1 Handling pybind11 >= 2.13.1, != 2.13.3 from build-system.requires Requirement not satisfied: pybind11 >= 2.13.1, != 2.13.3 Exiting dependency generation pass: build backend + cat /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-contourpy-1.3.0-2.fc42.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: fedora 100% | 909.8 KiB/s | 24.6 KiB | 00m00s Copr repository 100% | 43.6 KiB/s | 1.5 KiB | 00m00s Additional repo https_kojipkgs_fedorap 100% | 60.3 KiB/s | 3.5 KiB | 00m00s Repositories loaded. Package "gcc-c++-14.2.1-6.fc42.x86_64" is already installed. Package "pyproject-rpm-macros-1.16.2-1.fc42.noarch" is already installed. Package "pyproject-rpm-macros-1.16.2-1.fc42.noarch" is already installed. Package "python3-devel-3.13.0-1.fc42.x86_64" is already installed. Package "python3-packaging-24.2-2.fc42.noarch" is already installed. Package Arch Version Repository Size Installing: meson noarch 1.5.1-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 11.4 MiB python3-meson-python noarch 0.17.1-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 277.7 KiB python3-pip noarch 24.3.1-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 11.3 MiB python3-pybind11 x86_64 2.13.6-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 897.3 KiB Installing dependencies: cmake x86_64 3.30.5-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 32.7 MiB cmake-data noarch 3.30.5-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 8.2 MiB cmake-filesystem x86_64 3.30.5-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 0.0 B cmake-rpm-macros noarch 3.30.5-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 7.5 KiB emacs-filesystem noarch 1:30.0-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 0.0 B jsoncpp x86_64 1.9.5-8.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 253.4 KiB libuv x86_64 1:1.49.2-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 569.4 KiB ninja-build x86_64 1.12.1-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 432.6 KiB patchelf x86_64 0.18.0-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 283.6 KiB pybind11-devel x86_64 2.13.6-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 847.8 KiB python3-pyproject-metadata noarch 0.8.0-4.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 92.0 KiB python3-setuptools noarch 74.1.3-4.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 8.4 MiB rhash x86_64 1.4.5-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 359.3 KiB vim-filesystem noarch 2:9.1.825-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 40.0 B Transaction Summary: Installing: 18 packages Total size of inbound packages is 20 MiB. Need to download 2 MiB. After this operation, 76 MiB extra will be used (install 76 MiB, remove 0 B). [1/1] python3-pybind11-0:2.13.6-1.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [1/1] Total 100% | 0.0 B/s | 0.0 B | 00m00s [1/4] python3-pip-0:24.3.1-1.fc42.noarc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [2/5] pybind11-devel-0:2.13.6-1.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [3/8] cmake-0:3.30.5-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [4/9] cmake-filesystem-0:3.30.5-1.fc42. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 5/10] ninja-build-0:1.12.1-3.fc41.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 6/11] python3-setuptools-0:74.1.3-4.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 7/12] cmake-data-0:3.30.5-1.fc42.noar 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 8/13] jsoncpp-0:1.9.5-8.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 9/14] libuv-1:1.49.2-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [10/15] rhash-0:1.4.5-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [11/16] emacs-filesystem-1:30.0-3.fc41. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [12/17] vim-filesystem-2:9.1.825-1.fc42 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [13/18] cmake-rpm-macros-0:3.30.5-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [14/18] python3-meson-python-0:0.17.1-1 100% | 1.3 MiB/s | 81.2 KiB | 00m00s [15/18] patchelf-0:0.18.0-5.fc41.x86_64 100% | 1.8 MiB/s | 125.5 KiB | 00m00s [16/18] python3-pyproject-metadata-0:0. 100% | 2.5 MiB/s | 31.3 KiB | 00m00s [17/18] meson-0:1.5.1-1.fc42.noarch 100% | 22.0 MiB/s | 2.0 MiB | 00m00s -------------------------------------------------------------------------------- [18/18] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [ 1/20] Verify package files 100% | 260.0 B/s | 18.0 B | 00m00s [ 2/20] Prepare transaction 100% | 233.0 B/s | 18.0 B | 00m00s [ 3/20] Installing cmake-filesystem-0:3 100% | 2.4 MiB/s | 7.3 KiB | 00m00s [ 4/20] Installing cmake-rpm-macros-0:3 100% | 7.9 MiB/s | 8.1 KiB | 00m00s [ 5/20] Installing vim-filesystem-2:9.1 100% | 4.6 MiB/s | 4.7 KiB | 00m00s [ 6/20] Installing emacs-filesystem-1:3 100% | 0.0 B/s | 544.0 B | 00m00s [ 7/20] Installing ninja-build-0:1.12.1 100% | 106.4 MiB/s | 435.8 KiB | 00m00s [ 8/20] Installing rhash-0:1.4.5-1.fc42 100% | 118.7 MiB/s | 364.6 KiB | 00m00s [ 9/20] Installing libuv-1:1.49.2-1.fc4 100% | 186.3 MiB/s | 572.2 KiB | 00m00s [10/20] Installing jsoncpp-0:1.9.5-8.fc 100% | 41.5 MiB/s | 254.9 KiB | 00m00s [11/20] Installing cmake-data-0:3.30.5- 100% | 59.8 MiB/s | 8.8 MiB | 00m00s [12/20] Installing cmake-0:3.30.5-1.fc4 100% | 294.5 MiB/s | 32.7 MiB | 00m00s [13/20] Installing pybind11-devel-0:2.1 100% | 119.4 MiB/s | 856.0 KiB | 00m00s [14/20] Installing python3-setuptools-0 100% | 125.9 MiB/s | 8.6 MiB | 00m00s [15/20] Installing meson-0:1.5.1-1.fc42 100% | 192.0 MiB/s | 11.5 MiB | 00m00s [16/20] Installing python3-pyproject-me 100% | 46.4 MiB/s | 95.0 KiB | 00m00s [17/20] Installing patchelf-0:0.18.0-5. 100% | 139.3 MiB/s | 285.4 KiB | 00m00s [18/20] Installing python3-meson-python 100% | 92.3 MiB/s | 283.7 KiB | 00m00s [19/20] Installing python3-pybind11-0:2 100% | 99.0 MiB/s | 912.1 KiB | 00m00s [20/20] Installing python3-pip-0:24.3.1 100% | 96.8 MiB/s | 11.6 MiB | 00m00s Warning: skipped PGP checks for 18 packages from repository: https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1728259200 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.V2yk8n + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.0-build + cd contourpy-1.3.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.pyproject-builddir + RPM_TOXENV=py313 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/pyproject-wheeldir --output /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-buildrequires -p -x test Handling meson >= 1.2.0 from build-system.requires Requirement satisfied: meson >= 1.2.0 (installed: meson 1.5.1) Handling meson-python >= 0.13.1 from build-system.requires Requirement satisfied: meson-python >= 0.13.1 (installed: meson-python 0.17.1) Handling pybind11 >= 2.13.1, != 2.13.3 from build-system.requires Requirement satisfied: pybind11 >= 2.13.1, != 2.13.3 (installed: pybind11 2.13.6) Handling numpy >= 1.23 from pyproject.toml generated metadata: [dependencies] (contourpy) Requirement not satisfied: numpy >= 1.23 Handling furo from pyproject.toml generated metadata: [optional-dependencies] docs (contourpy) Ignoring alien requirement: furo Handling sphinx >= 7.2 from pyproject.toml generated metadata: [optional-dependencies] docs (contourpy) Ignoring alien requirement: sphinx >= 7.2 Handling sphinx-copybutton from pyproject.toml generated metadata: [optional-dependencies] docs (contourpy) Ignoring alien requirement: sphinx-copybutton Handling bokeh from pyproject.toml generated metadata: [optional-dependencies] bokeh (contourpy) Ignoring alien requirement: bokeh Handling selenium from pyproject.toml generated metadata: [optional-dependencies] bokeh (contourpy) Ignoring alien requirement: selenium Handling contourpy[bokeh,docs] from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: contourpy[bokeh,docs] Handling docutils-stubs from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: docutils-stubs Handling mypy == 1.11.1 from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: mypy == 1.11.1 Handling types-Pillow from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: types-Pillow Handling contourpy[test-no-images] from pyproject.toml generated metadata: [optional-dependencies] test (contourpy) Handling furo; extra == "docs" from Previously ignored alien requirements Ignoring alien requirement: furo; extra == "docs" Handling sphinx>=7.2; extra == "docs" from Previously ignored alien requirements Ignoring alien requirement: sphinx>=7.2; extra == "docs" Handling sphinx-copybutton; extra == "docs" from Previously ignored alien requirements Ignoring alien requirement: sphinx-copybutton; extra == "docs" Handling bokeh; extra == "bokeh" from Previously ignored alien requirements Ignoring alien requirement: bokeh; extra == "bokeh" Handling selenium; extra == "bokeh" from Previously ignored alien requirements Ignoring alien requirement: selenium; extra == "bokeh" Handling contourpy[bokeh,docs]; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: contourpy[bokeh,docs]; extra == "mypy" Handling docutils-stubs; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: docutils-stubs; extra == "mypy" Handling mypy==1.11.1; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: mypy==1.11.1; extra == "mypy" Handling types-Pillow; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: types-Pillow; extra == "mypy" Handling matplotlib from pyproject.toml generated metadata: [optional-dependencies] test (contourpy) Requirement not satisfied: matplotlib Handling Pillow from pyproject.toml generated metadata: [optional-dependencies] test (contourpy) Requirement not satisfied: Pillow Handling pytest from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement not satisfied: pytest Handling pytest-cov from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement not satisfied: pytest-cov Handling pytest-rerunfailures from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement not satisfied: pytest-rerunfailures Handling pytest-xdist from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement not satisfied: pytest-xdist Handling wurlitzer from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement not satisfied: wurlitzer + cat /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-contourpy-1.3.0-2.fc42.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: Additional repo https_kojipkgs_fedorap 100% | 94.5 KiB/s | 3.5 KiB | 00m00s fedora 100% | 944.7 KiB/s | 24.6 KiB | 00m00s Copr repository 100% | 44.9 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "gcc-c++-14.2.1-6.fc42.x86_64" is already installed. Package "pyproject-rpm-macros-1.16.2-1.fc42.noarch" is already installed. Package "pyproject-rpm-macros-1.16.2-1.fc42.noarch" is already installed. Package "python3-devel-3.13.0-1.fc42.x86_64" is already installed. Package "meson-1.5.1-1.fc42.noarch" is already installed. Package "python3-meson-python-0.17.1-1.fc42.noarch" is already installed. Package "python3-packaging-24.2-2.fc42.noarch" is already installed. Package "python3-pip-24.3.1-1.fc42.noarch" is already installed. Package Arch Version Repository Size Installing: python3-matplotlib x86_64 3.9.1-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 21.1 MiB python3-numpy x86_64 1:2.1.3-1.fc42 copr_base 40.7 MiB python3-pillow x86_64 11.0.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 3.9 MiB python3-pytest noarch 8.3.3-3.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 20.8 MiB python3-pytest-cov noarch 5.0.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 163.5 KiB python3-pytest-rerunfailures noarch 14.0-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 80.7 KiB python3-pytest-xdist noarch 3.6.1-4.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 419.8 KiB python3-wurlitzer noarch 3.1.1-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 53.4 KiB Installing dependencies: abattis-cantarell-vf-fonts noarch 0.301-13.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 192.7 KiB cairo x86_64 1.18.0-4.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.7 MiB default-fonts-core-sans noarch 4.2-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 11.9 KiB dejavu-sans-fonts noarch 2.37-24.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 5.5 MiB flexiblas x86_64 3.4.4-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 48.5 KiB flexiblas-netlib x86_64 3.4.4-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 10.7 MiB flexiblas-openblas-openmp x86_64 3.4.4-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 43.3 KiB fontconfig x86_64 2.15.0-8.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 791.9 KiB fonts-filesystem noarch 1:2.0.5-17.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 0.0 B freetype x86_64 2.13.3-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 850.5 KiB fribidi x86_64 1.0.16-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 194.5 KiB glib2 x86_64 2.83.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 14.7 MiB gnutls x86_64 3.8.8-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 3.2 MiB google-noto-fonts-common noarch 20240901-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 17.5 KiB google-noto-sans-vf-fonts noarch 20240901-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.2 MiB graphite2 x86_64 1.3.14-16.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 192.0 KiB harfbuzz x86_64 10.1.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.7 MiB jbigkit-libs x86_64 2.1-30.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 117.6 KiB lcms2 x86_64 2.16-4.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 424.9 KiB libX11 x86_64 1.8.10-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.3 MiB libX11-common noarch 1.8.10-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.1 MiB libXau x86_64 1.0.11-7.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 66.9 KiB libXext x86_64 1.3.6-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 90.1 KiB libXft x86_64 2.3.8-7.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 164.5 KiB libXrender x86_64 0.9.11-7.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 50.1 KiB libgfortran x86_64 14.2.1-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 3.0 MiB libimagequant x86_64 4.0.3-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 666.7 KiB libjpeg-turbo x86_64 3.0.4-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 789.1 KiB liblerc x86_64 4.0.0-7.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 607.5 KiB libpng x86_64 2:1.6.44-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 245.8 KiB libqhull_r x86_64 1:8.0.2-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 483.4 KiB libquadmath x86_64 14.2.1-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 325.9 KiB libraqm x86_64 0.10.1-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 32.7 KiB libtiff x86_64 4.6.0-6.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 606.0 KiB libwebp x86_64 1.4.0-4.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 822.6 KiB libxcb x86_64 1.17.0-3.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.2 MiB nettle x86_64 3.10-3.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 793.0 KiB openblas x86_64 0.3.26-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 96.0 KiB openblas-openmp x86_64 0.3.26-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 39.4 MiB openjpeg x86_64 2.5.2-4.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 445.7 KiB pixman x86_64 0.44.0-0.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 670.8 KiB python3-cairo x86_64 1.25.1-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 492.5 KiB python3-contourpy x86_64 1.3.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 808.6 KiB python3-coverage x86_64 7.3.2-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.7 MiB python3-coverage+toml x86_64 7.3.2-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 17.1 KiB python3-cycler noarch 0.11.0-13.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 37.6 KiB python3-dateutil noarch 1:2.8.2-16.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 879.2 KiB python3-execnet noarch 2.1.1-4.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 916.6 KiB python3-fonttools x86_64 4.55.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 18.1 MiB python3-iniconfig noarch 1.1.1-23.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 20.6 KiB python3-kiwisolver x86_64 1.4.7-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 153.9 KiB python3-matplotlib-data noarch 3.9.1-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 741.5 KiB python3-matplotlib-data-fonts noarch 3.9.1-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 7.9 MiB python3-matplotlib-tk x86_64 3.9.1-2.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 262.7 KiB python3-olefile noarch 0.47-5.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 340.4 KiB python3-pillow-tk x86_64 11.0.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 73.0 KiB python3-pluggy noarch 1.5.0-1.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 193.2 KiB python3-pyparsing noarch 3.1.2-7.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 1.0 MiB python3-six noarch 1.16.0-23.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 118.3 KiB python3-tkinter x86_64 3.13.0-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 2.0 MiB tcl x86_64 1:8.6.15-2.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 4.2 MiB tk x86_64 1:8.6.15-1.fc42 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 3.6 MiB xml-common noarch 0.6.3-65.fc41 https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 78.4 KiB Transaction Summary: Installing: 71 packages Total size of inbound packages is 48 MiB. Need to download 13 MiB. After this operation, 226 MiB extra will be used (install 226 MiB, remove 0 B). [1/2] python3-numpy-1:2.1.3-1.fc42.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [2/3] python3-pillow-0:11.0.0-1.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [3/8] python3-pytest-0:8.3.3-3.fc42.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [4/9] flexiblas-netlib-0:3.4.4-3.fc41.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 5/13] python3-iniconfig-0:1.1.1-23.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 6/14] python3-pluggy-0:1.5.0-1.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 7/15] freetype-0:2.13.3-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 8/16] lcms2-0:2.16-4.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 9/17] libimagequant-0:4.0.3-5.fc41.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [10/18] libjpeg-turbo-0:3.0.4-1.fc42.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [11/19] libraqm-0:0.10.1-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [12/20] libtiff-0:4.6.0-6.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [13/21] libwebp-0:1.4.0-4.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [14/22] libxcb-0:1.17.0-3.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [15/23] openjpeg-0:2.5.2-4.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [16/24] python3-olefile-0:0.47-5.fc41.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [17/25] dejavu-sans-fonts-0:2.37-24.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [18/26] libqhull_r-1:8.0.2-5.fc41.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [19/36] python3-six-0:1.16.0-23.fc41.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [20/37] cairo-0:1.18.0-4.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [21/38] libXau-0:1.0.11-7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [22/39] jbigkit-libs-0:2.1-30.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [23/40] liblerc-0:4.0.0-7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [24/41] fribidi-0:1.0.16-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [25/42] harfbuzz-0:10.1.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [26/43] glib2-0:2.83.0-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [27/44] graphite2-0:1.3.14-16.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [28/45] gnutls-0:3.8.8-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [29/46] libpng-2:1.6.44-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [30/47] flexiblas-0:3.4.4-3.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [31/48] flexiblas-openblas-openmp-0:3.4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [32/49] libgfortran-0:14.2.1-6.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [33/50] libquadmath-0:14.2.1-6.fc42.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [34/51] fonts-filesystem-1:2.0.5-17.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [35/52] fontconfig-0:2.15.0-8.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [36/53] libX11-0:1.8.10-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [37/54] libXext-0:1.3.6-2.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [38/55] libXrender-0:0.9.11-7.fc41.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [39/56] pixman-0:0.44.0-0.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [40/60] libX11-common-0:1.8.10-2.fc42.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [41/61] nettle-0:3.10-3.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [42/62] default-fonts-core-sans-0:4.2-2 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [43/63] xml-common-0:0.6.3-65.fc41.noar 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [44/64] openblas-openmp-0:0.3.26-5.fc41 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [45/65] abattis-cantarell-vf-fonts-0:0. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [46/66] google-noto-sans-vf-fonts-0:202 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [47/67] tcl-1:8.6.15-2.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [48/68] tk-1:8.6.15-1.fc42.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [49/69] openblas-0:0.3.26-5.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [50/70] google-noto-fonts-common-0:2024 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [51/71] libXft-0:2.3.8-7.fc41.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [52/71] python3-pytest-rerunfailures-0: 100% | 589.6 KiB/s | 31.2 KiB | 00m00s [53/71] python3-pytest-cov-0:5.0.0-1.fc 100% | 813.2 KiB/s | 48.8 KiB | 00m00s [54/71] python3-pytest-xdist-0:3.6.1-4. 100% | 4.7 MiB/s | 100.8 KiB | 00m00s [55/71] python3-execnet-0:2.1.1-4.fc42. 100% | 8.8 MiB/s | 243.4 KiB | 00m00s [56/71] python3-wurlitzer-0:3.1.1-3.fc4 100% | 594.7 KiB/s | 27.4 KiB | 00m00s [57/71] python3-coverage+toml-0:7.3.2-5 100% | 774.2 KiB/s | 9.3 KiB | 00m00s [58/71] python3-matplotlib-0:3.9.1-2.fc 100% | 33.9 MiB/s | 4.5 MiB | 00m00s [59/71] python3-cairo-0:1.25.1-5.fc41.x 100% | 6.8 MiB/s | 124.6 KiB | 00m00s [60/71] python3-coverage-0:7.3.2-5.fc41 100% | 9.9 MiB/s | 366.5 KiB | 00m00s [61/71] python3-contourpy-0:1.3.0-1.fc4 100% | 18.4 MiB/s | 264.2 KiB | 00m00s [62/71] python3-cycler-0:0.11.0-13.fc41 100% | 1.1 MiB/s | 21.3 KiB | 00m00s [63/71] python3-dateutil-1:2.8.2-16.fc4 100% | 13.1 MiB/s | 349.0 KiB | 00m00s [64/71] python3-kiwisolver-0:1.4.7-1.fc 100% | 4.3 MiB/s | 66.7 KiB | 00m00s [65/71] python3-matplotlib-tk-0:3.9.1-2 100% | 7.8 MiB/s | 111.6 KiB | 00m00s [66/71] python3-pyparsing-0:3.1.2-7.fc4 100% | 13.9 MiB/s | 270.3 KiB | 00m00s [67/71] python3-fonttools-0:4.55.0-1.fc 100% | 44.3 MiB/s | 2.9 MiB | 00m00s [68/71] python3-pillow-tk-0:11.0.0-1.fc 100% | 2.7 MiB/s | 30.9 KiB | 00m00s [69/71] python3-matplotlib-data-0:3.9.1 100% | 10.6 MiB/s | 508.9 KiB | 00m00s [70/71] python3-tkinter-0:3.13.0-1.fc42 100% | 19.3 MiB/s | 356.1 KiB | 00m00s [71/71] python3-matplotlib-data-fonts-0 100% | 23.0 MiB/s | 2.3 MiB | 00m00s -------------------------------------------------------------------------------- [71/71] Total 100% | 34.6 MiB/s | 12.6 MiB | 00m00s Running transaction [ 1/73] Verify package files 100% | 427.0 B/s | 71.0 B | 00m00s [ 2/73] Prepare transaction 100% | 855.0 B/s | 71.0 B | 00m00s [ 3/73] Installing fonts-filesystem-1:2 100% | 769.5 KiB/s | 788.0 B | 00m00s [ 4/73] Installing python3-matplotlib-d 100% | 272.8 MiB/s | 7.9 MiB | 00m00s [ 5/73] Installing python3-matplotlib-d 100% | 105.9 MiB/s | 758.7 KiB | 00m00s [ 6/73] Installing tcl-1:8.6.15-2.fc42. 100% | 193.2 MiB/s | 4.3 MiB | 00m00s [ 7/73] Installing libgfortran-0:14.2.1 100% | 304.5 MiB/s | 3.0 MiB | 00m00s [ 8/73] Installing libpng-2:1.6.44-1.fc 100% | 120.6 MiB/s | 247.0 KiB | 00m00s [ 9/73] Installing libwebp-0:1.4.0-4.fc 100% | 201.8 MiB/s | 826.8 KiB | 00m00s [10/73] Installing libjpeg-turbo-0:3.0. 100% | 257.4 MiB/s | 790.8 KiB | 00m00s [11/73] Installing python3-coverage-0:7 100% | 170.3 MiB/s | 1.7 MiB | 00m00s [12/73] Installing python3-coverage+tom 100% | 0.0 B/s | 124.0 B | 00m00s [13/73] Installing dejavu-sans-fonts-0: 100% | 344.3 MiB/s | 5.5 MiB | 00m00s [14/73] Installing abattis-cantarell-vf 100% | 94.9 MiB/s | 194.4 KiB | 00m00s [15/73] Installing google-noto-fonts-co 100% | 0.0 B/s | 18.3 KiB | 00m00s [16/73] Installing google-noto-sans-vf- 100% | 249.8 MiB/s | 1.2 MiB | 00m00s [17/73] Installing default-fonts-core-s 100% | 8.9 MiB/s | 18.2 KiB | 00m00s [18/73] Installing openblas-0:0.3.26-5. 100% | 95.5 MiB/s | 97.8 KiB | 00m00s [19/73] Installing openblas-openmp-0:0. 100% | 418.8 MiB/s | 39.4 MiB | 00m00s [20/73] Installing xml-common-0:0.6.3-6 100% | 39.6 MiB/s | 81.1 KiB | 00m00s [21/73] Installing nettle-0:3.10-3.fc41 100% | 194.4 MiB/s | 796.1 KiB | 00m00s [22/73] Installing gnutls-0:3.8.8-1.fc4 100% | 232.1 MiB/s | 3.2 MiB | 00m00s [23/73] Installing glib2-0:2.83.0-1.fc4 100% | 267.2 MiB/s | 14.7 MiB | 00m00s [24/73] Installing libX11-common-0:1.8. 100% | 69.8 MiB/s | 1.2 MiB | 00m00s [25/73] Installing pixman-0:0.44.0-0.fc 100% | 218.7 MiB/s | 671.9 KiB | 00m00s [26/73] Installing libquadmath-0:14.2.1 100% | 159.8 MiB/s | 327.2 KiB | 00m00s [27/73] Installing flexiblas-0:3.4.4-3. 100% | 48.5 MiB/s | 49.7 KiB | 00m00s [28/73] Installing flexiblas-openblas-o 100% | 43.1 MiB/s | 44.1 KiB | 00m00s [29/73] Installing flexiblas-netlib-0:3 100% | 304.7 MiB/s | 10.7 MiB | 00m00s [30/73] Installing python3-numpy-1:2.1. 100% | 253.1 MiB/s | 41.0 MiB | 00m00s [31/73] Installing python3-contourpy-0: 100% | 160.4 MiB/s | 821.2 KiB | 00m00s [32/73] Installing graphite2-0:1.3.14-1 100% | 94.8 MiB/s | 194.1 KiB | 00m00s [33/73] Installing harfbuzz-0:10.1.0-1. 100% | 269.2 MiB/s | 2.7 MiB | 00m00s [34/73] Installing freetype-0:2.13.3-1. 100% | 208.1 MiB/s | 852.2 KiB | 00m00s [35/73] Installing fontconfig-0:2.15.0- 100% | 776.9 KiB/s | 811.1 KiB | 00m01s [36/73] Installing fribidi-0:1.0.16-1.f 100% | 64.1 MiB/s | 197.0 KiB | 00m00s [37/73] Installing libraqm-0:0.10.1-1.f 100% | 33.0 MiB/s | 33.8 KiB | 00m00s [38/73] Installing liblerc-0:4.0.0-7.fc 100% | 198.3 MiB/s | 609.0 KiB | 00m00s [39/73] Installing jbigkit-libs-0:2.1-3 100% | 58.4 MiB/s | 119.6 KiB | 00m00s [40/73] Installing libtiff-0:4.6.0-6.fc 100% | 198.0 MiB/s | 608.2 KiB | 00m00s [41/73] Installing libXau-0:1.0.11-7.fc 100% | 66.8 MiB/s | 68.4 KiB | 00m00s [42/73] Installing libxcb-0:1.17.0-3.fc 100% | 132.0 MiB/s | 1.2 MiB | 00m00s [43/73] Installing libX11-0:1.8.10-2.fc 100% | 257.1 MiB/s | 1.3 MiB | 00m00s [44/73] Installing libXrender-0:0.9.11- 100% | 50.2 MiB/s | 51.4 KiB | 00m00s [45/73] Installing libXft-0:2.3.8-7.fc4 100% | 13.5 MiB/s | 166.0 KiB | 00m00s [46/73] Installing tk-1:8.6.15-1.fc42.x 100% | 153.6 MiB/s | 3.7 MiB | 00m00s [47/73] Installing python3-tkinter-0:3. 100% | 179.9 MiB/s | 2.0 MiB | 00m00s [48/73] Installing libXext-0:1.3.6-2.fc 100% | 89.2 MiB/s | 91.3 KiB | 00m00s [49/73] Installing cairo-0:1.18.0-4.fc4 100% | 249.1 MiB/s | 1.7 MiB | 00m00s [50/73] Installing python3-cairo-0:1.25 100% | 161.7 MiB/s | 496.6 KiB | 00m00s [51/73] Installing python3-six-0:1.16.0 100% | 58.9 MiB/s | 120.7 KiB | 00m00s [52/73] Installing python3-dateutil-1:2 100% | 145.3 MiB/s | 892.9 KiB | 00m00s [53/73] Installing python3-pyparsing-0: 100% | 197.8 MiB/s | 1.0 MiB | 00m00s [54/73] Installing python3-kiwisolver-0 100% | 38.5 MiB/s | 157.8 KiB | 00m00s [55/73] Installing python3-fonttools-0: 100% | 210.1 MiB/s | 18.3 MiB | 00m00s [56/73] Installing python3-cycler-0:0.1 100% | 38.9 MiB/s | 39.8 KiB | 00m00s [57/73] Installing libqhull_r-1:8.0.2-5 100% | 236.4 MiB/s | 484.2 KiB | 00m00s [58/73] Installing python3-olefile-0:0. 100% | 167.8 MiB/s | 343.6 KiB | 00m00s [59/73] Installing openjpeg-0:2.5.2-4.f 100% | 145.7 MiB/s | 447.6 KiB | 00m00s [60/73] Installing libimagequant-0:4.0. 100% | 217.6 MiB/s | 668.3 KiB | 00m00s [61/73] Installing lcms2-0:2.16-4.fc41. 100% | 138.8 MiB/s | 426.5 KiB | 00m00s [62/73] Installing python3-pillow-0:11. 100% | 181.4 MiB/s | 4.0 MiB | 00m00s [63/73] Installing python3-pillow-tk-0: 100% | 73.1 MiB/s | 74.8 KiB | 00m00s [64/73] Installing python3-matplotlib-t 100% | 64.8 MiB/s | 265.3 KiB | 00m00s [65/73] Installing python3-matplotlib-0 100% | 215.5 MiB/s | 21.3 MiB | 00m00s [66/73] Installing python3-pluggy-0:1.5 100% | 64.9 MiB/s | 199.4 KiB | 00m00s [67/73] Installing python3-iniconfig-0: 100% | 7.7 MiB/s | 23.6 KiB | 00m00s [68/73] Installing python3-pytest-0:8.3 100% | 268.7 MiB/s | 21.0 MiB | 00m00s [69/73] Installing python3-execnet-0:2. 100% | 101.8 MiB/s | 938.2 KiB | 00m00s [70/73] Installing python3-pytest-xdist 100% | 105.5 MiB/s | 432.1 KiB | 00m00s [71/73] Installing python3-pytest-cov-0 100% | 82.7 MiB/s | 169.4 KiB | 00m00s [72/73] Installing python3-pytest-rerun 100% | 81.2 MiB/s | 83.2 KiB | 00m00s [73/73] Installing python3-wurlitzer-0: 100% | 396.7 KiB/s | 55.5 KiB | 00m00s Warning: skipped PGP checks for 71 packages from repositories: copr_base, https_kojipkgs_fedoraproject_org_repos_rawhide_latest_x86_64 Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1728259200 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.rGPaKk + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.0-build + cd contourpy-1.3.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.pyproject-builddir + RPM_TOXENV=py313 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/pyproject-wheeldir --output /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-buildrequires -p -x test Handling meson >= 1.2.0 from build-system.requires Requirement satisfied: meson >= 1.2.0 (installed: meson 1.5.1) Handling meson-python >= 0.13.1 from build-system.requires Requirement satisfied: meson-python >= 0.13.1 (installed: meson-python 0.17.1) Handling pybind11 >= 2.13.1, != 2.13.3 from build-system.requires Requirement satisfied: pybind11 >= 2.13.1, != 2.13.3 (installed: pybind11 2.13.6) Handling numpy >= 1.23 from pyproject.toml generated metadata: [dependencies] (contourpy) Requirement satisfied: numpy >= 1.23 (installed: numpy 2.1.3) Handling furo from pyproject.toml generated metadata: [optional-dependencies] docs (contourpy) Ignoring alien requirement: furo Handling sphinx >= 7.2 from pyproject.toml generated metadata: [optional-dependencies] docs (contourpy) Ignoring alien requirement: sphinx >= 7.2 Handling sphinx-copybutton from pyproject.toml generated metadata: [optional-dependencies] docs (contourpy) Ignoring alien requirement: sphinx-copybutton Handling bokeh from pyproject.toml generated metadata: [optional-dependencies] bokeh (contourpy) Ignoring alien requirement: bokeh Handling selenium from pyproject.toml generated metadata: [optional-dependencies] bokeh (contourpy) Ignoring alien requirement: selenium Handling contourpy[bokeh,docs] from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: contourpy[bokeh,docs] Handling docutils-stubs from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: docutils-stubs Handling mypy == 1.11.1 from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: mypy == 1.11.1 Handling types-Pillow from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: types-Pillow Handling contourpy[test-no-images] from pyproject.toml generated metadata: [optional-dependencies] test (contourpy) Handling furo; extra == "docs" from Previously ignored alien requirements Ignoring alien requirement: furo; extra == "docs" Handling sphinx>=7.2; extra == "docs" from Previously ignored alien requirements Ignoring alien requirement: sphinx>=7.2; extra == "docs" Handling sphinx-copybutton; extra == "docs" from Previously ignored alien requirements Ignoring alien requirement: sphinx-copybutton; extra == "docs" Handling bokeh; extra == "bokeh" from Previously ignored alien requirements Ignoring alien requirement: bokeh; extra == "bokeh" Handling selenium; extra == "bokeh" from Previously ignored alien requirements Ignoring alien requirement: selenium; extra == "bokeh" Handling contourpy[bokeh,docs]; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: contourpy[bokeh,docs]; extra == "mypy" Handling docutils-stubs; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: docutils-stubs; extra == "mypy" Handling mypy==1.11.1; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: mypy==1.11.1; extra == "mypy" Handling types-Pillow; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: types-Pillow; extra == "mypy" Handling matplotlib from pyproject.toml generated metadata: [optional-dependencies] test (contourpy) Requirement satisfied: matplotlib (installed: matplotlib 3.9.1) Handling Pillow from pyproject.toml generated metadata: [optional-dependencies] test (contourpy) Requirement satisfied: Pillow (installed: Pillow 11.0.0) Handling pytest from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement satisfied: pytest (installed: pytest 8.3.3) Handling pytest-cov from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement satisfied: pytest-cov (installed: pytest-cov 5.0.0) Handling pytest-rerunfailures from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement satisfied: pytest-rerunfailures (installed: pytest-rerunfailures 14.0) Handling pytest-xdist from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement satisfied: pytest-xdist (installed: pytest-xdist 3.6.1) Handling wurlitzer from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement satisfied: wurlitzer (installed: wurlitzer 3.1.1) + cat /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/python-contourpy-1.3.0-2.fc42.buildreqs.nosrc.rpm INFO: Going to install missing dynamic buildrequires Updating and loading repositories: Copr repository 100% | 49.2 KiB/s | 1.5 KiB | 00m00s fedora 100% | 909.8 KiB/s | 24.6 KiB | 00m00s Additional repo https_kojipkgs_fedorap 100% | 92.0 KiB/s | 3.5 KiB | 00m00s Repositories loaded. Package "gcc-c++-14.2.1-6.fc42.x86_64" is already installed. Package "pyproject-rpm-macros-1.16.2-1.fc42.noarch" is already installed. Package "pyproject-rpm-macros-1.16.2-1.fc42.noarch" is already installed. Package "python3-devel-3.13.0-1.fc42.x86_64" is already installed. Package "python3-matplotlib-3.9.1-2.fc41.x86_64" is already installed. Package "meson-1.5.1-1.fc42.noarch" is already installed. Package "python3-meson-python-0.17.1-1.fc42.noarch" is already installed. Package "python3-numpy-1:2.1.3-1.fc42.x86_64" is already installed. Package "python3-packaging-24.2-2.fc42.noarch" is already installed. Package "python3-pillow-11.0.0-1.fc42.x86_64" is already installed. Package "python3-pip-24.3.1-1.fc42.noarch" is already installed. Package "python3-pytest-8.3.3-3.fc42.noarch" is already installed. Package "python3-pytest-cov-5.0.0-1.fc42.noarch" is already installed. Package "python3-pytest-rerunfailures-14.0-2.fc41.noarch" is already installed. Package "python3-pytest-xdist-3.6.1-4.fc41.noarch" is already installed. Package "python3-wurlitzer-3.1.1-3.fc41.noarch" is already installed. Nothing to do. Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1728259200 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.SNO5M9 + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.0-build + cd contourpy-1.3.0 + echo pyproject-rpm-macros + echo python3-devel + echo 'python3dist(packaging)' + echo 'python3dist(pip) >= 19' + '[' -f pyproject.toml ']' + echo '(python3dist(tomli) if python3-devel < 3.11)' + rm -rfv '*.dist-info/' + '[' -f /usr/bin/python3 ']' + mkdir -p /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.pyproject-builddir + echo -n + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.pyproject-builddir + RPM_TOXENV=py313 + HOSTNAME=rpmbuild + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_buildrequires.py --generate-extras --python3_pkgversion 3 --wheeldir /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/pyproject-wheeldir --output /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-buildrequires -p -x test Handling meson >= 1.2.0 from build-system.requires Requirement satisfied: meson >= 1.2.0 (installed: meson 1.5.1) Handling meson-python >= 0.13.1 from build-system.requires Requirement satisfied: meson-python >= 0.13.1 (installed: meson-python 0.17.1) Handling pybind11 >= 2.13.1, != 2.13.3 from build-system.requires Requirement satisfied: pybind11 >= 2.13.1, != 2.13.3 (installed: pybind11 2.13.6) Handling numpy >= 1.23 from pyproject.toml generated metadata: [dependencies] (contourpy) Requirement satisfied: numpy >= 1.23 (installed: numpy 2.1.3) Handling furo from pyproject.toml generated metadata: [optional-dependencies] docs (contourpy) Ignoring alien requirement: furo Handling sphinx >= 7.2 from pyproject.toml generated metadata: [optional-dependencies] docs (contourpy) Ignoring alien requirement: sphinx >= 7.2 Handling sphinx-copybutton from pyproject.toml generated metadata: [optional-dependencies] docs (contourpy) Ignoring alien requirement: sphinx-copybutton Handling bokeh from pyproject.toml generated metadata: [optional-dependencies] bokeh (contourpy) Ignoring alien requirement: bokeh Handling selenium from pyproject.toml generated metadata: [optional-dependencies] bokeh (contourpy) Ignoring alien requirement: selenium Handling contourpy[bokeh,docs] from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: contourpy[bokeh,docs] Handling docutils-stubs from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: docutils-stubs Handling mypy == 1.11.1 from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: mypy == 1.11.1 Handling types-Pillow from pyproject.toml generated metadata: [optional-dependencies] mypy (contourpy) Ignoring alien requirement: types-Pillow Handling contourpy[test-no-images] from pyproject.toml generated metadata: [optional-dependencies] test (contourpy) Handling furo; extra == "docs" from Previously ignored alien requirements Ignoring alien requirement: furo; extra == "docs" Handling sphinx>=7.2; extra == "docs" from Previously ignored alien requirements Ignoring alien requirement: sphinx>=7.2; extra == "docs" Handling sphinx-copybutton; extra == "docs" from Previously ignored alien requirements Ignoring alien requirement: sphinx-copybutton; extra == "docs" Handling bokeh; extra == "bokeh" from Previously ignored alien requirements Ignoring alien requirement: bokeh; extra == "bokeh" Handling selenium; extra == "bokeh" from Previously ignored alien requirements Ignoring alien requirement: selenium; extra == "bokeh" Handling contourpy[bokeh,docs]; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: contourpy[bokeh,docs]; extra == "mypy" Handling docutils-stubs; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: docutils-stubs; extra == "mypy" Handling mypy==1.11.1; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: mypy==1.11.1; extra == "mypy" Handling types-Pillow; extra == "mypy" from Previously ignored alien requirements Ignoring alien requirement: types-Pillow; extra == "mypy" Handling matplotlib from pyproject.toml generated metadata: [optional-dependencies] test (contourpy) Requirement satisfied: matplotlib (installed: matplotlib 3.9.1) Handling Pillow from pyproject.toml generated metadata: [optional-dependencies] test (contourpy) Requirement satisfied: Pillow (installed: Pillow 11.0.0) Handling pytest from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement satisfied: pytest (installed: pytest 8.3.3) Handling pytest-cov from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement satisfied: pytest-cov (installed: pytest-cov 5.0.0) Handling pytest-rerunfailures from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement satisfied: pytest-rerunfailures (installed: pytest-rerunfailures 14.0) Handling pytest-xdist from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement satisfied: pytest-xdist (installed: pytest-xdist 3.6.1) Handling wurlitzer from pyproject.toml generated metadata: [optional-dependencies] test-no-images (contourpy) Requirement satisfied: wurlitzer (installed: wurlitzer 3.1.1) + cat /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-buildrequires + rm -rfv '*.dist-info/' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.PUyOTo + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.0-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd contourpy-1.3.0 + mkdir -p /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.pyproject-builddir + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + VALAFLAGS=-g + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + LT_SYS_LIBRARY_PATH=/usr/lib64: + CC=gcc + CXX=g++ + TMPDIR=/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.pyproject-builddir + /usr/bin/python3 -Bs /usr/lib/rpm/redhat/pyproject_wheel.py /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/pyproject-wheeldir Processing /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0 Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) + meson setup /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0 /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.mesonpy-wmop86vv -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --vsenv --native-file=/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.mesonpy-wmop86vv/meson-python-native-file.ini The Meson build system Version: 1.5.1 Source dir: /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0 Build dir: /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.mesonpy-wmop86vv Build type: native build Project name: contourpy Project version: 1.3.0 C++ compiler for the host machine: g++ (gcc 14.2.1 "g++ (GCC) 14.2.1 20241104 (Red Hat 14.2.1-6)") C++ linker for the host machine: g++ ld.bfd 2.43.50.20241104 Host machine cpu family: x86_64 Host machine cpu: x86_64 Program python found: YES (/usr/bin/python3) Found pkg-config: YES (/usr/bin/pkg-config) 2.3.0 Run-time dependency pybind11 found: YES 2.13.6 Configuring _build_config.py using configuration Run-time dependency python found: YES 3.13 Build targets in project: 1 contourpy 1.3.0 Build config host_cpu : x86_64 build_cpu : x86_64 cross_build : false optimization: 3 User defined options Native files: /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.mesonpy-wmop86vv/meson-python-native-file.ini buildtype : release vsenv : true b_ndebug : if-release b_vscrt : md Found ninja-1.12.1 at /usr/bin/ninja Visual Studio environment is needed to run Ninja. It is recommended to use Meson wrapper: /usr/bin/meson compile -C . + /usr/bin/ninja -v [1/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/contour_generator.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/contour_generator.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/contour_generator.cpp.o -c ../src/contour_generator.cpp [2/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/converter.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/converter.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/converter.cpp.o -c ../src/converter.cpp [3/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/fill_type.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/fill_type.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/fill_type.cpp.o -c ../src/fill_type.cpp [4/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/line_type.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/line_type.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/line_type.cpp.o -c ../src/line_type.cpp [5/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/chunk_local.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/chunk_local.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/chunk_local.cpp.o -c ../src/chunk_local.cpp [6/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/mpl2005.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/mpl2005.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/mpl2005.cpp.o -c ../src/mpl2005.cpp [7/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/outer_or_hole.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/outer_or_hole.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/outer_or_hole.cpp.o -c ../src/outer_or_hole.cpp [8/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/mpl2005_original.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/mpl2005_original.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/mpl2005_original.cpp.o -c ../src/mpl2005_original.cpp [9/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/mpl2014.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/mpl2014.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/mpl2014.cpp.o -c ../src/mpl2014.cpp [10/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/util.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/util.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/util.cpp.o -c ../src/util.cpp [11/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/serial.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/serial.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/serial.cpp.o -c ../src/serial.cpp [12/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/z_interp.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/z_interp.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/z_interp.cpp.o -c ../src/z_interp.cpp [13/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/threaded.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/threaded.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/threaded.cpp.o -c ../src/threaded.cpp [14/15] g++ -Isrc/_contourpy.cpython-313-x86_64-linux-gnu.so.p -Isrc -I../src -I/include -I/usr/include/python3.13 -fvisibility=hidden -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c++17 -O3 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fPIC -DCONTOURPY_VERSION=1.3.0 -MD -MQ src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/wrap.cpp.o -MF src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/wrap.cpp.o.d -o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/wrap.cpp.o -c ../src/wrap.cpp [15/15] g++ -o src/_contourpy.cpython-313-x86_64-linux-gnu.so src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/chunk_local.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/contour_generator.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/converter.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/fill_type.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/line_type.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/mpl2005_original.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/mpl2005.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/mpl2014.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/outer_or_hole.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/serial.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/threaded.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/util.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/wrap.cpp.o src/_contourpy.cpython-313-x86_64-linux-gnu.so.p/z_interp.cpp.o -Wl,--as-needed -Wl,--allow-shlib-undefined -Wl,-O1 -shared -fPIC -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer [1/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.mesonpy-wmop86vv/src/_contourpy.cpython-313-x86_64-linux-gnu.so [2/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/__init__.py [3/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/_version.py [4/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/array.py [5/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/chunk.py [6/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/convert.py [7/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/dechunk.py [8/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/enum_util.py [9/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/typecheck.py [10/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/types.py [11/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/_contourpy.pyi [12/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/py.typed [13/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/util/__init__.py [14/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/util/bokeh_renderer.py [15/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/util/bokeh_util.py [16/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/util/data.py [17/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/util/mpl_renderer.py [18/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/util/mpl_util.py [19/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/lib/contourpy/util/renderer.py [20/20] /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.mesonpy-wmop86vv/lib/contourpy/util/_build_config.py Preparing metadata (pyproject.toml): finished with status 'done' Building wheels for collected packages: contourpy Building wheel for contourpy (pyproject.toml): started Running command Building wheel for contourpy (pyproject.toml) Building wheel for contourpy (pyproject.toml): finished with status 'done' Created wheel for contourpy: filename=contourpy-1.3.0-cp313-cp313-linux_x86_64.whl size=4158500 sha256=2fcdab71f4595d76e5e416bb5b30ddb63ab34e83b167ede694580ed7238cb878 Stored in directory: /builddir/.cache/pip/wheels/c9/9b/47/4e4f0c05148aa8294b6544fdb10539081b8c9de2adee991f44 Successfully built contourpy + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.RYaA1z + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.0-build + '[' /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT ++ dirname /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT + mkdir -p /builddir/build/BUILD/python-contourpy-1.3.0-build + mkdir /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd contourpy-1.3.0 ++ ls /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/pyproject-wheeldir/contourpy-1.3.0-cp313-cp313-linux_x86_64.whl ++ sed -E 's/([^-]+)-([^-]+)-.+\.whl/\1==\2/' ++ xargs basename --multiple + specifier=contourpy==1.3.0 + '[' -z contourpy==1.3.0 ']' + TMPDIR=/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.pyproject-builddir + /usr/bin/python3 -m pip install --root /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT --prefix /usr --no-deps --disable-pip-version-check --progress-bar off --verbose --ignore-installed --no-warn-script-location --no-index --no-cache-dir --find-links /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/pyproject-wheeldir contourpy==1.3.0 Using pip 24.3.1 from /usr/lib/python3.13/site-packages/pip (python 3.13) Looking in links: /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/pyproject-wheeldir Processing ./pyproject-wheeldir/contourpy-1.3.0-cp313-cp313-linux_x86_64.whl Installing collected packages: contourpy Successfully installed contourpy-1.3.0 + '[' -d /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/bin ']' + rm -f /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-ghost-distinfo + site_dirs=() + '[' -d /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib/python3.13/site-packages ']' + '[' /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages '!=' /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib/python3.13/site-packages ']' + '[' -d /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages ']' + site_dirs+=("/usr/lib64/python3.13/site-packages") + for site_dir in ${site_dirs[@]} + for distinfo in /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT$site_dir/*.dist-info + echo '%ghost /usr/lib64/python3.13/site-packages/contourpy-1.3.0.dist-info' + sed -i s/pip/rpm/ /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy-1.3.0.dist-info/INSTALLER + PYTHONPATH=/usr/lib/rpm/redhat + /usr/bin/python3 -B /usr/lib/rpm/redhat/pyproject_preprocess_record.py --buildroot /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT --record /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy-1.3.0.dist-info/RECORD --output /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-record + rm -fv /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy-1.3.0.dist-info/RECORD removed '/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy-1.3.0.dist-info/RECORD' + rm -fv /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy-1.3.0.dist-info/REQUESTED removed '/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy-1.3.0.dist-info/REQUESTED' ++ wc -l /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-ghost-distinfo ++ cut -f1 '-d ' + lines=1 + '[' 1 -ne 1 ']' + RPM_FILES_ESCAPE=4.19 + /usr/bin/python3 /usr/lib/rpm/redhat/pyproject_save_files.py --output-files /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-files --output-modules /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-modules --buildroot /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT --sitelib /usr/lib/python3.13/site-packages --sitearch /usr/lib64/python3.13/site-packages --python-version 3.13 --pyproject-record /builddir/build/BUILD/python-contourpy-1.3.0-build/python-contourpy-1.3.0-2.fc42.x86_64-pyproject-record --prefix /usr contourpy + /usr/bin/find-debuginfo -j2 --strict-build-id -m -i --build-id-seed 1.3.0-2.fc42 --unique-debug-suffix -1.3.0-2.fc42.x86_64 --unique-debug-src-base python-contourpy-1.3.0-2.fc42.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0 find-debuginfo: starting Extracting debug info from 1 files DWARF-compressing 1 files sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/python-contourpy-1.3.0-2.fc42.x86_64 cpio: .mesonpy-wmop86vv/: Cannot stat: No such file or directory find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j2 Bytecompiling .py files below /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13 using python3.13 Bytecompiling .py files below /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib/debug/usr/lib64/python3.13 using python3.13 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-determinism --brp -j2 /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/__init__.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/_build_config.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/bokeh_util.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/data.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/bokeh_renderer.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/mpl_util.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/renderer.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/__init__.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/_version.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/enum_util.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/array.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/__pycache__/mpl_renderer.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/typecheck.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/chunk.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/types.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/convert.cpython-313.pyc: replacing with normalized version /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/dechunk.cpython-313.pyc: rewriting with normalized contents /builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/__pycache__/convert.cpython-313.opt-1.pyc: replacing with normalized version Scanned 21 directories and 91 files, processed 18 inodes, 18 modified (2 replaced + 16 rewritten), 0 unsupported format, 0 errors Reading /builddir/build/BUILD/python-contourpy-1.3.0-build/SPECPARTS/rpm-debuginfo.specpart Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.Gv8lXF + umask 022 + cd /builddir/build/BUILD/python-contourpy-1.3.0-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd contourpy-1.3.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + PATH=/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PYTHONPATH=/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages:/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib/python3.13/site-packages + PYTHONDONTWRITEBYTECODE=1 + PYTEST_ADDOPTS=' --ignore=/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/.pyproject-builddir' + PYTEST_XDIST_AUTO_NUM_WORKERS=2 + /usr/bin/pytest ============================= test session starts ============================== platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 rootdir: /builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0 configfile: pyproject.toml plugins: xdist-3.6.1, cov-5.0.0, rerunfailures-14.0 collected 2446 items / 1 skipped tests/test_array.py .................... [ 0%] tests/test_build_config.py . [ 0%] tests/test_chunk.py ................................................ [ 2%] tests/test_codebase.py ss. [ 2%] tests/test_config.py FsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFs [ 4%] tests/test_constructor.py .............................................. [ 6%] ........................................................................ [ 9%] ........................................................................ [ 12%] ........................................................................ [ 15%] ........................................................................ [ 18%] ........................................................................ [ 21%] ........................................................................ [ 23%] ........................................................................ [ 26%] .. [ 26%] tests/test_convert.py .................................................. [ 29%] ........................................................................ [ 31%] ........................................................................ [ 34%] ........................................................................ [ 37%] ........................................................................ [ 40%] ........................................................................ [ 43%] ........................................................................ [ 46%] ...... [ 46%] tests/test_dechunk.py .................................................. [ 48%] ................ [ 49%] tests/test_enum.py ................. [ 50%] tests/test_filled.py ............FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 52%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 55%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 58%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF................................... [ 61%] .......................ss............ssssssssss......................... [ 64%] ........................................................................ [ 67%] ........................................................................ [ 70%] .....................ss............ [ 71%] tests/test_internal.py ................................ [ 72%] tests/test_lines.py ....................................FFFFFFFFFFFFFFFF [ 74%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 77%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF [ 80%] FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF.......................................... [ 83%] .......ss............................................................... [ 86%] ...................................................................ss... [ 89%] ....... [ 89%] tests/test_minimal.py .......................... [ 91%] tests/test_misc.py .. [ 91%] tests/test_renderer.py FsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsF [ 93%] sFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsF [ 96%] sFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFsFFFF [ 97%] tests/test_static.py .................................... [ 99%] tests/test_typecheck.py .............. [ 99%] tests/test_z_interp.py ........ [100%] =================================== FAILURES =================================== ______________________ test_config_filled[mpl2005-False] _______________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'mpl2005' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.all_names()) def test_config_filled(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 26, in test_config_filled from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________________ test_config_filled[mpl2014-False] _______________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'mpl2014' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.all_names()) def test_config_filled(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 26, in test_config_filled from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________________ test_config_filled[serial-False] _______________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'serial' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.all_names()) def test_config_filled(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 26, in test_config_filled from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________________ test_config_filled[threaded-False] ______________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'threaded' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.all_names()) def test_config_filled(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:26: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 26, in test_config_filled from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_config_filled_quad_as_tri[serial-False] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'serial' @pytest.mark.image @pytest.mark.text @pytest.mark.flaky(reruns=1, condition=platform.python_implementation().startswith("PyPy")) @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_config_filled_quad_as_tri(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/pytest_rerunfailures.py", line 549, in pytest_runtest_protocol reports = runtestprotocol(item, nextitem=nextitem, log=False) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 42, in test_config_filled_quad_as_tri from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_config_filled_quad_as_tri[threaded-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'threaded' @pytest.mark.image @pytest.mark.text @pytest.mark.flaky(reruns=1, condition=platform.python_implementation().startswith("PyPy")) @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_config_filled_quad_as_tri(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:42: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/pytest_rerunfailures.py", line 549, in pytest_runtest_protocol reports = runtestprotocol(item, nextitem=nextitem, log=False) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 42, in test_config_filled_quad_as_tri from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_config_filled_corner[mpl2014-False] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'mpl2014' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_config_filled_corner(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 57, in test_config_filled_corner from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_config_filled_corner[serial-False] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'serial' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_config_filled_corner(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 57, in test_config_filled_corner from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_config_filled_corner[threaded-False] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'threaded' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_config_filled_corner(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:57: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 57, in test_config_filled_corner from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________________ test_config_lines[mpl2005-False] _______________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'mpl2005' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.all_names()) def test_config_lines(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 72, in test_config_lines from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________________ test_config_lines[mpl2014-False] _______________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'mpl2014' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.all_names()) def test_config_lines(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 72, in test_config_lines from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________________ test_config_lines[serial-False] ________________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'serial' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.all_names()) def test_config_lines(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 72, in test_config_lines from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________________ test_config_lines[threaded-False] _______________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'threaded' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.all_names()) def test_config_lines(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:72: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 72, in test_config_lines from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_config_lines_quad_as_tri[serial-False] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'serial' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_config_lines_quad_as_tri(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 89, in test_config_lines_quad_as_tri from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_config_lines_quad_as_tri[threaded-False] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'threaded' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_config_lines_quad_as_tri(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 89, in test_config_lines_quad_as_tri from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_config_lines_corner[mpl2014-False] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'mpl2014' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_config_lines_corner(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 104, in test_config_lines_corner from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________________ test_config_lines_corner[serial-False] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'serial' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_config_lines_corner(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 104, in test_config_lines_corner from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_config_lines_corner[threaded-False] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, name = 'threaded' @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_config_lines_corner(show_text: bool, name: str) -> None: > from . import util_config tests/test_config.py:104: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/util_config.py:8: in import matplotlib.pyplot as plt /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_config.py", line 104, in test_config_lines_corner from . import util_config File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/util_config.py", line 8, in import matplotlib.pyplot as plt File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_simple[mpl2005-OuterCode-False] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_filled_simple[mpl2005-OuterCode-True] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_simple[mpl2014-OuterCode-False] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_filled_simple[mpl2014-OuterCode-True] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_filled_simple[serial-OuterCode-False] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_filled_simple[serial-OuterCode-True] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_simple[serial-OuterOffset-False] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_simple[serial-OuterOffset-True] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_simple[serial-ChunkCombinedCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_simple[serial-ChunkCombinedCode-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_simple[serial-ChunkCombinedOffset-False] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_simple[serial-ChunkCombinedOffset-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_filled_simple[serial-ChunkCombinedCodeOffset-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_filled_simple[serial-ChunkCombinedCodeOffset-True] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_simple[serial-ChunkCombinedOffsetOffset-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_simple[serial-ChunkCombinedOffsetOffset-True] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_simple[threaded-OuterCode-False] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_simple[threaded-OuterCode-True] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_filled_simple[threaded-OuterOffset-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_filled_simple[threaded-OuterOffset-True] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_simple[threaded-ChunkCombinedCode-False] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_simple[threaded-ChunkCombinedCode-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_filled_simple[threaded-ChunkCombinedOffset-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_filled_simple[threaded-ChunkCombinedOffset-True] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_simple[threaded-ChunkCombinedCodeOffset-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_simple[threaded-ChunkCombinedCodeOffset-True] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_simple[threaded-ChunkCombinedOffsetOffset-False] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_simple[threaded-ChunkCombinedOffsetOffset-True] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 69, in test_filled_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_simple_chunk[mpl2005-OuterCode-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_filled_simple_chunk[mpl2005-OuterCode-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_simple_chunk[mpl2014-OuterCode-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_filled_simple_chunk[mpl2014-OuterCode-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_filled_simple_chunk[serial-OuterCode-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_filled_simple_chunk[serial-OuterCode-True] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_simple_chunk[serial-OuterOffset-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_simple_chunk[serial-OuterOffset-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_filled_simple_chunk[serial-ChunkCombinedCode-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_filled_simple_chunk[serial-ChunkCombinedCode-True] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_simple_chunk[serial-ChunkCombinedOffset-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_simple_chunk[serial-ChunkCombinedOffset-True] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_simple_chunk[serial-ChunkCombinedCodeOffset-False] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_simple_chunk[serial-ChunkCombinedCodeOffset-True] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_filled_simple_chunk[serial-ChunkCombinedOffsetOffset-False] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_filled_simple_chunk[serial-ChunkCombinedOffsetOffset-True] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_simple_chunk[threaded-OuterCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_simple_chunk[threaded-OuterCode-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_simple_chunk[threaded-OuterOffset-False] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_simple_chunk[threaded-OuterOffset-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_simple_chunk[threaded-ChunkCombinedCode-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_simple_chunk[threaded-ChunkCombinedCode-True] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_simple_chunk[threaded-ChunkCombinedOffset-False] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_simple_chunk[threaded-ChunkCombinedOffset-True] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_filled_simple_chunk[threaded-ChunkCombinedCodeOffset-False] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_filled_simple_chunk[threaded-ChunkCombinedCodeOffset-True] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_filled_simple_chunk[threaded-ChunkCombinedOffsetOffset-False] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_filled_simple_chunk[threaded-ChunkCombinedOffsetOffset-True] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:97: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 97, in test_filled_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_filled_simple_chunk_threads[2-OuterCode] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 129, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_filled_simple_chunk_threads[2-OuterOffset] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 129, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_filled_simple_chunk_threads[2-ChunkCombinedCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 129, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_filled_simple_chunk_threads[2-ChunkCombinedOffset] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 129, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_simple_chunk_threads[2-ChunkCombinedCodeOffset] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 129, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_simple_chunk_threads[2-ChunkCombinedOffsetOffset] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:129: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 129, in test_filled_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_simple_no_corner_mask[mpl2005-OuterCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_simple_no_corner_mask[mpl2014-OuterCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_simple_no_corner_mask[serial-OuterCode] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_filled_simple_no_corner_mask[serial-OuterOffset] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_simple_no_corner_mask[serial-ChunkCombinedCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_simple_no_corner_mask[serial-ChunkCombinedOffset] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_filled_simple_no_corner_mask[serial-ChunkCombinedCodeOffset] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_filled_simple_no_corner_mask[serial-ChunkCombinedOffsetOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_filled_simple_no_corner_mask[threaded-OuterCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_filled_simple_no_corner_mask[threaded-OuterOffset] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_simple_no_corner_mask[threaded-ChunkCombinedCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_filled_simple_no_corner_mask[threaded-ChunkCombinedOffset] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_filled_simple_no_corner_mask[threaded-ChunkCombinedCodeOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____ test_filled_simple_no_corner_mask[threaded-ChunkCombinedOffsetOffset] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:155: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 155, in test_filled_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_simple_no_corner_mask_chunk[mpl2005-OuterCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_simple_no_corner_mask_chunk[mpl2014-OuterCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_simple_no_corner_mask_chunk[serial-OuterCode] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_simple_no_corner_mask_chunk[serial-OuterOffset] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_filled_simple_no_corner_mask_chunk[serial-ChunkCombinedCode] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_filled_simple_no_corner_mask_chunk[serial-ChunkCombinedOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___ test_filled_simple_no_corner_mask_chunk[serial-ChunkCombinedCodeOffset] ____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __ test_filled_simple_no_corner_mask_chunk[serial-ChunkCombinedOffsetOffset] ___ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_simple_no_corner_mask_chunk[threaded-OuterCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_simple_no_corner_mask_chunk[threaded-OuterOffset] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_filled_simple_no_corner_mask_chunk[threaded-ChunkCombinedCode] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____ test_filled_simple_no_corner_mask_chunk[threaded-ChunkCombinedOffset] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __ test_filled_simple_no_corner_mask_chunk[threaded-ChunkCombinedCodeOffset] ___ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _ test_filled_simple_no_corner_mask_chunk[threaded-ChunkCombinedOffsetOffset] __ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_simple_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 177, in test_filled_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_simple_no_corner_mask_chunk_threads[2-OuterCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_no_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:206: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 206, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_simple_no_corner_mask_chunk_threads[2-OuterOffset] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_no_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:206: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 206, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_filled_simple_no_corner_mask_chunk_threads[2-ChunkCombinedCode] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_no_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:206: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 206, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____ test_filled_simple_no_corner_mask_chunk_threads[2-ChunkCombinedOffset] ____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_no_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:206: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 206, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __ test_filled_simple_no_corner_mask_chunk_threads[2-ChunkCombinedCodeOffset] __ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_no_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:206: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 206, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _ test_filled_simple_no_corner_mask_chunk_threads[2-ChunkCombinedOffsetOffset] _ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_no_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:206: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 206, in test_filled_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_filled_simple_corner_mask[mpl2014] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_filled_simple_corner_mask(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:234: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 234, in test_filled_simple_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________________ test_filled_simple_corner_mask[serial] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_filled_simple_corner_mask(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:234: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 234, in test_filled_simple_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_filled_simple_corner_mask[threaded] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_filled_simple_corner_mask(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:234: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 234, in test_filled_simple_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_filled_simple_corner_mask_chunk[mpl2014] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_filled_simple_corner_mask_chunk(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:257: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 257, in test_filled_simple_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_simple_corner_mask_chunk[serial] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_filled_simple_corner_mask_chunk(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:257: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 257, in test_filled_simple_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_filled_simple_corner_mask_chunk[threaded] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_filled_simple_corner_mask_chunk(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:257: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 257, in test_filled_simple_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_simple_corner_mask_chunk_threads[2-OuterCode] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:287: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 287, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_simple_corner_mask_chunk_threads[2-OuterOffset] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:287: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 287, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_filled_simple_corner_mask_chunk_threads[2-ChunkCombinedCode] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:287: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 287, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_filled_simple_corner_mask_chunk_threads[2-ChunkCombinedOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:287: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 287, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___ test_filled_simple_corner_mask_chunk_threads[2-ChunkCombinedCodeOffset] ____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:287: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 287, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __ test_filled_simple_corner_mask_chunk_threads[2-ChunkCombinedOffsetOffset] ___ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_simple_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:287: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 287, in test_filled_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________________ test_filled_simple_quad_as_tri[serial] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial' @pytest.mark.image @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_filled_simple_quad_as_tri(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 316, in test_filled_simple_quad_as_tri from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_filled_simple_quad_as_tri[threaded] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded' @pytest.mark.image @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_filled_simple_quad_as_tri(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:316: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 316, in test_filled_simple_quad_as_tri from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_random[mpl2005-OuterCode-False] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_filled_random[mpl2005-OuterCode-True] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_random[mpl2014-OuterCode-False] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_filled_random[mpl2014-OuterCode-True] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_filled_random[serial-OuterCode-False] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_filled_random[serial-OuterCode-True] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_random[serial-OuterOffset-False] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_random[serial-OuterOffset-True] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_random[serial-ChunkCombinedCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_random[serial-ChunkCombinedCode-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_random[serial-ChunkCombinedOffset-False] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_random[serial-ChunkCombinedOffset-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_filled_random[serial-ChunkCombinedCodeOffset-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_filled_random[serial-ChunkCombinedCodeOffset-True] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_random[serial-ChunkCombinedOffsetOffset-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_random[serial-ChunkCombinedOffsetOffset-True] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_random[threaded-OuterCode-False] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_random[threaded-OuterCode-True] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_filled_random[threaded-OuterOffset-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_filled_random[threaded-OuterOffset-True] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_random[threaded-ChunkCombinedCode-False] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_random[threaded-ChunkCombinedCode-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_filled_random[threaded-ChunkCombinedOffset-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_filled_random[threaded-ChunkCombinedOffset-True] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_random[threaded-ChunkCombinedCodeOffset-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_random[threaded-ChunkCombinedCodeOffset-True] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_random[threaded-ChunkCombinedOffsetOffset-False] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_random[threaded-ChunkCombinedOffsetOffset-True] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:340: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 340, in test_filled_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_random_chunk[mpl2005-OuterCode-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_filled_random_chunk[mpl2005-OuterCode-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_random_chunk[mpl2014-OuterCode-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_filled_random_chunk[mpl2014-OuterCode-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_filled_random_chunk[serial-OuterCode-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_filled_random_chunk[serial-OuterCode-True] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_random_chunk[serial-OuterOffset-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_random_chunk[serial-OuterOffset-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_filled_random_chunk[serial-ChunkCombinedCode-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_filled_random_chunk[serial-ChunkCombinedCode-True] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_random_chunk[serial-ChunkCombinedOffset-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_random_chunk[serial-ChunkCombinedOffset-True] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_random_chunk[serial-ChunkCombinedCodeOffset-False] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_random_chunk[serial-ChunkCombinedCodeOffset-True] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_filled_random_chunk[serial-ChunkCombinedOffsetOffset-False] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_filled_random_chunk[serial-ChunkCombinedOffsetOffset-True] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_random_chunk[threaded-OuterCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_filled_random_chunk[threaded-OuterCode-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_random_chunk[threaded-OuterOffset-False] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_random_chunk[threaded-OuterOffset-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_random_chunk[threaded-ChunkCombinedCode-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_random_chunk[threaded-ChunkCombinedCode-True] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_random_chunk[threaded-ChunkCombinedOffset-False] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_random_chunk[threaded-ChunkCombinedOffset-True] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_filled_random_chunk[threaded-ChunkCombinedCodeOffset-False] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_filled_random_chunk[threaded-ChunkCombinedCodeOffset-True] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_filled_random_chunk[threaded-ChunkCombinedOffsetOffset-False] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_filled_random_chunk[threaded-ChunkCombinedOffsetOffset-True] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_chunk(name: str, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:368: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 368, in test_filled_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_filled_random_chunk_threads[2-OuterCode] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:414: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 414, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_filled_random_chunk_threads[2-OuterOffset] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:414: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 414, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_filled_random_chunk_threads[2-ChunkCombinedCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:414: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 414, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_filled_random_chunk_threads[2-ChunkCombinedOffset] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:414: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 414, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_random_chunk_threads[2-ChunkCombinedCodeOffset] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:414: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 414, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_random_chunk_threads[2-ChunkCombinedOffsetOffset] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:414: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 414, in test_filled_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_random_no_corner_mask[mpl2005-OuterCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_random_no_corner_mask[mpl2014-OuterCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_filled_random_no_corner_mask[serial-OuterCode] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_filled_random_no_corner_mask[serial-OuterOffset] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_random_no_corner_mask[serial-ChunkCombinedCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_random_no_corner_mask[serial-ChunkCombinedOffset] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_filled_random_no_corner_mask[serial-ChunkCombinedCodeOffset] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_filled_random_no_corner_mask[serial-ChunkCombinedOffsetOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_filled_random_no_corner_mask[threaded-OuterCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_filled_random_no_corner_mask[threaded-OuterOffset] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_random_no_corner_mask[threaded-ChunkCombinedCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_filled_random_no_corner_mask[threaded-ChunkCombinedOffset] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_filled_random_no_corner_mask[threaded-ChunkCombinedCodeOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____ test_filled_random_no_corner_mask[threaded-ChunkCombinedOffsetOffset] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:448: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 448, in test_filled_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_random_no_corner_mask_chunk[mpl2005-OuterCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_random_no_corner_mask_chunk[mpl2014-OuterCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_random_no_corner_mask_chunk[serial-OuterCode] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_random_no_corner_mask_chunk[serial-OuterOffset] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_filled_random_no_corner_mask_chunk[serial-ChunkCombinedCode] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_filled_random_no_corner_mask_chunk[serial-ChunkCombinedOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___ test_filled_random_no_corner_mask_chunk[serial-ChunkCombinedCodeOffset] ____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __ test_filled_random_no_corner_mask_chunk[serial-ChunkCombinedOffsetOffset] ___ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_random_no_corner_mask_chunk[threaded-OuterCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_random_no_corner_mask_chunk[threaded-OuterOffset] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_filled_random_no_corner_mask_chunk[threaded-ChunkCombinedCode] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____ test_filled_random_no_corner_mask_chunk[threaded-ChunkCombinedOffset] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __ test_filled_random_no_corner_mask_chunk[threaded-ChunkCombinedCodeOffset] ___ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _ test_filled_random_no_corner_mask_chunk[threaded-ChunkCombinedOffsetOffset] __ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', fill_type = @pytest.mark.image @pytest.mark.parametrize("name, fill_type", util_test.all_names_and_fill_types()) def test_filled_random_no_corner_mask_chunk(name: str, fill_type: FillType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:470: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 470, in test_filled_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_random_no_corner_mask_chunk_threads[2-OuterCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_no_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:512: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 512, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_filled_random_no_corner_mask_chunk_threads[2-OuterOffset] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_no_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:512: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 512, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_filled_random_no_corner_mask_chunk_threads[2-ChunkCombinedCode] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_no_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:512: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 512, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____ test_filled_random_no_corner_mask_chunk_threads[2-ChunkCombinedOffset] ____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_no_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:512: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 512, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __ test_filled_random_no_corner_mask_chunk_threads[2-ChunkCombinedCodeOffset] __ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_no_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:512: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 512, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _ test_filled_random_no_corner_mask_chunk_threads[2-ChunkCombinedOffsetOffset] _ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_no_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:512: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 512, in test_filled_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_filled_random_corner_mask[mpl2014] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_filled_random_corner_mask(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:547: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 547, in test_filled_random_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________________ test_filled_random_corner_mask[serial] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_filled_random_corner_mask(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:547: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 547, in test_filled_random_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_filled_random_corner_mask[threaded] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_filled_random_corner_mask(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:547: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 547, in test_filled_random_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_filled_random_corner_mask_chunk[mpl2014] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_filled_random_corner_mask_chunk(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:570: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 570, in test_filled_random_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_filled_random_corner_mask_chunk[serial] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_filled_random_corner_mask_chunk(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:570: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 570, in test_filled_random_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_filled_random_corner_mask_chunk[threaded] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_filled_random_corner_mask_chunk(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:570: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 570, in test_filled_random_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_filled_random_corner_mask_chunk_threads[2-OuterCode] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:606: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 606, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_filled_random_corner_mask_chunk_threads[2-OuterOffset] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:606: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 606, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_filled_random_corner_mask_chunk_threads[2-ChunkCombinedCode] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:606: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 606, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_filled_random_corner_mask_chunk_threads[2-ChunkCombinedOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:606: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 606, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___ test_filled_random_corner_mask_chunk_threads[2-ChunkCombinedCodeOffset] ____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:606: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 606, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __ test_filled_random_corner_mask_chunk_threads[2-ChunkCombinedOffsetOffset] ___ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: fill_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("fill_type", FillType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_filled_random_corner_mask_chunk_threads(fill_type: FillType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:606: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 606, in test_filled_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________________ test_filled_random_quad_as_tri[serial] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial' @pytest.mark.image @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_filled_random_quad_as_tri(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:635: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 635, in test_filled_random_quad_as_tri from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_filled_random_quad_as_tri[threaded] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded' @pytest.mark.image @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_filled_random_quad_as_tri(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_filled.py:635: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_filled.py", line 635, in test_filled_random_quad_as_tri from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_simple[mpl2005-SeparateCode-False] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_simple[mpl2005-SeparateCode-True] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_simple[mpl2014-SeparateCode-False] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_simple[mpl2014-SeparateCode-True] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_lines_simple[serial-Separate-False] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_lines_simple[serial-Separate-True] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_simple[serial-SeparateCode-False] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_simple[serial-SeparateCode-True] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_simple[serial-ChunkCombinedCode-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_lines_simple[serial-ChunkCombinedCode-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_simple[serial-ChunkCombinedOffset-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_simple[serial-ChunkCombinedOffset-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_lines_simple[serial-ChunkCombinedNan-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_lines_simple[serial-ChunkCombinedNan-True] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_lines_simple[threaded-Separate-False] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_lines_simple[threaded-Separate-True] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_simple[threaded-SeparateCode-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_simple[threaded-SeparateCode-True] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_simple[threaded-ChunkCombinedCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_simple[threaded-ChunkCombinedCode-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_simple[threaded-ChunkCombinedOffset-False] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_simple[threaded-ChunkCombinedOffset-True] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_simple[threaded-ChunkCombinedNan-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_simple[threaded-ChunkCombinedNan-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:119: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 119, in test_lines_simple from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_simple_chunk[mpl2005-SeparateCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_simple_chunk[mpl2005-SeparateCode-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_simple_chunk[mpl2014-SeparateCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_simple_chunk[mpl2014-SeparateCode-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_simple_chunk[serial-Separate-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_simple_chunk[serial-Separate-True] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_simple_chunk[serial-SeparateCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_simple_chunk[serial-SeparateCode-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_simple_chunk[serial-ChunkCombinedCode-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_simple_chunk[serial-ChunkCombinedCode-True] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_simple_chunk[serial-ChunkCombinedOffset-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_simple_chunk[serial-ChunkCombinedOffset-True] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_simple_chunk[serial-ChunkCombinedNan-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_simple_chunk[serial-ChunkCombinedNan-True] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_lines_simple_chunk[threaded-Separate-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_lines_simple_chunk[threaded-Separate-True] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_simple_chunk[threaded-SeparateCode-False] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_simple_chunk[threaded-SeparateCode-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_simple_chunk[threaded-ChunkCombinedCode-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_simple_chunk[threaded-ChunkCombinedCode-True] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_simple_chunk[threaded-ChunkCombinedOffset-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_simple_chunk[threaded-ChunkCombinedOffset-True] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_simple_chunk[threaded-ChunkCombinedNan-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_simple_chunk[threaded-ChunkCombinedNan-True] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:147: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 147, in test_lines_simple_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_simple_chunk_threads[2-Separate] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 177, in test_lines_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_lines_simple_chunk_threads[2-SeparateCode] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 177, in test_lines_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_simple_chunk_threads[2-ChunkCombinedCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 177, in test_lines_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_simple_chunk_threads[2-ChunkCombinedOffset] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 177, in test_lines_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_simple_chunk_threads[2-ChunkCombinedNan] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:177: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 177, in test_lines_simple_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_simple_no_corner_mask[mpl2005-SeparateCode] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 201, in test_lines_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_simple_no_corner_mask[mpl2014-SeparateCode] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 201, in test_lines_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_simple_no_corner_mask[serial-Separate] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 201, in test_lines_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_simple_no_corner_mask[serial-SeparateCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 201, in test_lines_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_simple_no_corner_mask[serial-ChunkCombinedCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 201, in test_lines_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_simple_no_corner_mask[serial-ChunkCombinedOffset] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 201, in test_lines_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_simple_no_corner_mask[serial-ChunkCombinedNan] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 201, in test_lines_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_simple_no_corner_mask[threaded-Separate] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 201, in test_lines_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_simple_no_corner_mask[threaded-SeparateCode] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 201, in test_lines_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_simple_no_corner_mask[threaded-ChunkCombinedCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 201, in test_lines_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_lines_simple_no_corner_mask[threaded-ChunkCombinedOffset] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 201, in test_lines_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_simple_no_corner_mask[threaded-ChunkCombinedNan] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:201: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 201, in test_lines_simple_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_simple_no_corner_mask_chunk[mpl2005-SeparateCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 223, in test_lines_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_simple_no_corner_mask_chunk[mpl2014-SeparateCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 223, in test_lines_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_simple_no_corner_mask_chunk[serial-Separate] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 223, in test_lines_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_simple_no_corner_mask_chunk[serial-SeparateCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 223, in test_lines_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_lines_simple_no_corner_mask_chunk[serial-ChunkCombinedCode] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 223, in test_lines_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_lines_simple_no_corner_mask_chunk[serial-ChunkCombinedOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 223, in test_lines_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_lines_simple_no_corner_mask_chunk[serial-ChunkCombinedNan] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 223, in test_lines_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_simple_no_corner_mask_chunk[threaded-Separate] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 223, in test_lines_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_lines_simple_no_corner_mask_chunk[threaded-SeparateCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 223, in test_lines_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_lines_simple_no_corner_mask_chunk[threaded-ChunkCombinedCode] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 223, in test_lines_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_lines_simple_no_corner_mask_chunk[threaded-ChunkCombinedOffset] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 223, in test_lines_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_lines_simple_no_corner_mask_chunk[threaded-ChunkCombinedNan] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_simple_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:223: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 223, in test_lines_simple_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_simple_no_corner_mask_chunk_threads[2-Separate] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_no_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:249: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 249, in test_lines_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_lines_simple_no_corner_mask_chunk_threads[2-SeparateCode] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_no_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:249: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 249, in test_lines_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_lines_simple_no_corner_mask_chunk_threads[2-ChunkCombinedCode] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_no_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:249: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 249, in test_lines_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____ test_lines_simple_no_corner_mask_chunk_threads[2-ChunkCombinedOffset] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_no_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:249: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 249, in test_lines_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_lines_simple_no_corner_mask_chunk_threads[2-ChunkCombinedNan] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_no_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:249: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 249, in test_lines_simple_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________________ test_lines_simple_corner_mask[mpl2014] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_lines_simple_corner_mask(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 276, in test_lines_simple_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________________ test_lines_simple_corner_mask[serial] _____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_lines_simple_corner_mask(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 276, in test_lines_simple_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_lines_simple_corner_mask[threaded] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_lines_simple_corner_mask(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 276, in test_lines_simple_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_simple_corner_mask_chunk[mpl2014] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_lines_simple_corner_mask_chunk(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 299, in test_lines_simple_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_simple_corner_mask_chunk[serial] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_lines_simple_corner_mask_chunk(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 299, in test_lines_simple_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_simple_corner_mask_chunk[threaded] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_lines_simple_corner_mask_chunk(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:299: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 299, in test_lines_simple_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_simple_corner_mask_chunk_threads[2-Separate] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:326: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 326, in test_lines_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_simple_corner_mask_chunk_threads[2-SeparateCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:326: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 326, in test_lines_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_lines_simple_corner_mask_chunk_threads[2-ChunkCombinedCode] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:326: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 326, in test_lines_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_lines_simple_corner_mask_chunk_threads[2-ChunkCombinedOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:326: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 326, in test_lines_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_lines_simple_corner_mask_chunk_threads[2-ChunkCombinedNan] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_simple_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:326: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 326, in test_lines_simple_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________________ test_lines_simple_quad_as_tri[serial] _____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial' @pytest.mark.image @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_lines_simple_quad_as_tri(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:353: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 353, in test_lines_simple_quad_as_tri from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_lines_simple_quad_as_tri[threaded] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded' @pytest.mark.image @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_lines_simple_quad_as_tri(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:353: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 353, in test_lines_simple_quad_as_tri from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_random[mpl2005-SeparateCode-False] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_random[mpl2005-SeparateCode-True] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_random[mpl2014-SeparateCode-False] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_random[mpl2014-SeparateCode-True] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_lines_random[serial-Separate-False] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_lines_random[serial-Separate-True] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_random[serial-SeparateCode-False] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_random[serial-SeparateCode-True] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_random[serial-ChunkCombinedCode-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_lines_random[serial-ChunkCombinedCode-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_random[serial-ChunkCombinedOffset-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_random[serial-ChunkCombinedOffset-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_lines_random[serial-ChunkCombinedNan-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_lines_random[serial-ChunkCombinedNan-True] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_lines_random[threaded-Separate-False] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________________ test_lines_random[threaded-Separate-True] ___________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_random[threaded-SeparateCode-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_random[threaded-SeparateCode-True] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_random[threaded-ChunkCombinedCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_random[threaded-ChunkCombinedCode-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_random[threaded-ChunkCombinedOffset-False] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_random[threaded-ChunkCombinedOffset-True] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_random[threaded-ChunkCombinedNan-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_random[threaded-ChunkCombinedNan-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:376: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 376, in test_lines_random from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_random_chunk[mpl2005-SeparateCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_random_chunk[mpl2005-SeparateCode-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_random_chunk[mpl2014-SeparateCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_random_chunk[mpl2014-SeparateCode-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_random_chunk[serial-Separate-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_random_chunk[serial-Separate-True] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_random_chunk[serial-SeparateCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_random_chunk[serial-SeparateCode-True] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_random_chunk[serial-ChunkCombinedCode-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_random_chunk[serial-ChunkCombinedCode-True] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_random_chunk[serial-ChunkCombinedOffset-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_random_chunk[serial-ChunkCombinedOffset-True] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_random_chunk[serial-ChunkCombinedNan-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_random_chunk[serial-ChunkCombinedNan-True] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_lines_random_chunk[threaded-Separate-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_lines_random_chunk[threaded-Separate-True] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_random_chunk[threaded-SeparateCode-False] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_random_chunk[threaded-SeparateCode-True] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_random_chunk[threaded-ChunkCombinedCode-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_random_chunk[threaded-ChunkCombinedCode-True] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_random_chunk[threaded-ChunkCombinedOffset-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_random_chunk[threaded-ChunkCombinedOffset-True] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_random_chunk[threaded-ChunkCombinedNan-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = False @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_random_chunk[threaded-ChunkCombinedNan-True] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = , multi = True @pytest.mark.image @pytest.mark.parametrize("multi", [False, True]) @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_chunk(name: str, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:406: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 406, in test_lines_random_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_random_chunk_threads[2-Separate] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:445: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 445, in test_lines_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_lines_random_chunk_threads[2-SeparateCode] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:445: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 445, in test_lines_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_random_chunk_threads[2-ChunkCombinedCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:445: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 445, in test_lines_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_random_chunk_threads[2-ChunkCombinedOffset] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:445: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 445, in test_lines_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_random_chunk_threads[2-ChunkCombinedNan] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:445: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 445, in test_lines_random_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_random_no_corner_mask[mpl2005-SeparateCode] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 471, in test_lines_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_random_no_corner_mask[mpl2014-SeparateCode] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 471, in test_lines_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_lines_random_no_corner_mask[serial-Separate] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 471, in test_lines_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_lines_random_no_corner_mask[serial-SeparateCode] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 471, in test_lines_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_random_no_corner_mask[serial-ChunkCombinedCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 471, in test_lines_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_random_no_corner_mask[serial-ChunkCombinedOffset] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 471, in test_lines_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_random_no_corner_mask[serial-ChunkCombinedNan] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 471, in test_lines_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_lines_random_no_corner_mask[threaded-Separate] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 471, in test_lines_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_random_no_corner_mask[threaded-SeparateCode] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 471, in test_lines_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_random_no_corner_mask[threaded-ChunkCombinedCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 471, in test_lines_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_lines_random_no_corner_mask[threaded-ChunkCombinedOffset] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 471, in test_lines_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_random_no_corner_mask[threaded-ChunkCombinedNan] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:471: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 471, in test_lines_random_no_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_random_no_corner_mask_chunk[mpl2005-SeparateCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2005', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 493, in test_lines_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_random_no_corner_mask_chunk[mpl2014-SeparateCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 493, in test_lines_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_random_no_corner_mask_chunk[serial-Separate] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 493, in test_lines_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_random_no_corner_mask_chunk[serial-SeparateCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 493, in test_lines_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_lines_random_no_corner_mask_chunk[serial-ChunkCombinedCode] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 493, in test_lines_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_lines_random_no_corner_mask_chunk[serial-ChunkCombinedOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 493, in test_lines_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_lines_random_no_corner_mask_chunk[serial-ChunkCombinedNan] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 493, in test_lines_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_random_no_corner_mask_chunk[threaded-Separate] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 493, in test_lines_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_lines_random_no_corner_mask_chunk[threaded-SeparateCode] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 493, in test_lines_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_lines_random_no_corner_mask_chunk[threaded-ChunkCombinedCode] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 493, in test_lines_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_lines_random_no_corner_mask_chunk[threaded-ChunkCombinedOffset] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 493, in test_lines_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_lines_random_no_corner_mask_chunk[threaded-ChunkCombinedNan] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded', line_type = @pytest.mark.image @pytest.mark.parametrize("name, line_type", util_test.all_names_and_line_types()) def test_lines_random_no_corner_mask_chunk(name: str, line_type: LineType) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:493: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 493, in test_lines_random_no_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_lines_random_no_corner_mask_chunk_threads[2-Separate] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_no_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:522: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 522, in test_lines_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_lines_random_no_corner_mask_chunk_threads[2-SeparateCode] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_no_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:522: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 522, in test_lines_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____ test_lines_random_no_corner_mask_chunk_threads[2-ChunkCombinedCode] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_no_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:522: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 522, in test_lines_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____ test_lines_random_no_corner_mask_chunk_threads[2-ChunkCombinedOffset] _____ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_no_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:522: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 522, in test_lines_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_lines_random_no_corner_mask_chunk_threads[2-ChunkCombinedNan] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_no_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:522: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 522, in test_lines_random_no_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________________ test_lines_random_corner_mask[mpl2014] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_lines_random_corner_mask(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:549: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 549, in test_lines_random_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________________ test_lines_random_corner_mask[serial] _____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_lines_random_corner_mask(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:549: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 549, in test_lines_random_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_lines_random_corner_mask[threaded] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_lines_random_corner_mask(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:549: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 549, in test_lines_random_corner_mask from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_random_corner_mask_chunk[mpl2014] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'mpl2014' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_lines_random_corner_mask_chunk(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:572: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 572, in test_lines_random_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________________ test_lines_random_corner_mask_chunk[serial] __________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_lines_random_corner_mask_chunk(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:572: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 572, in test_lines_random_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_lines_random_corner_mask_chunk[threaded] _________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded' @pytest.mark.image @pytest.mark.parametrize("name", util_test.corner_mask_names()) def test_lines_random_corner_mask_chunk(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:572: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 572, in test_lines_random_corner_mask_chunk from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_lines_random_corner_mask_chunk_threads[2-Separate] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:599: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 599, in test_lines_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_lines_random_corner_mask_chunk_threads[2-SeparateCode] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:599: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 599, in test_lines_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_lines_random_corner_mask_chunk_threads[2-ChunkCombinedCode] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:599: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 599, in test_lines_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_lines_random_corner_mask_chunk_threads[2-ChunkCombinedOffset] ______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:599: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 599, in test_lines_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_lines_random_corner_mask_chunk_threads[2-ChunkCombinedNan] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: line_type = , thread_count = 2 @pytest.mark.image @pytest.mark.threads @pytest.mark.parametrize("line_type", LineType.__members__.values()) @pytest.mark.parametrize("thread_count", util_test.thread_counts()) def test_lines_random_corner_mask_chunk_threads(line_type: LineType, thread_count: int) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:599: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 599, in test_lines_random_corner_mask_chunk_threads from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________________ test_lines_random_quad_as_tri[serial] _____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'serial' @pytest.mark.image @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_lines_random_quad_as_tri(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:626: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 626, in test_lines_random_quad_as_tri from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________________ test_lines_random_quad_as_tri[threaded] ____________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: name = 'threaded' @pytest.mark.image @pytest.mark.parametrize("name", util_test.quad_as_tri_names()) def test_lines_random_quad_as_tri(name: str) -> None: > from contourpy.util.mpl_renderer import MplTestRenderer tests/test_lines.py:626: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_lines.py", line 626, in test_lines_random_quad_as_tri from contourpy.util.mpl_renderer import MplTestRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_debug_renderer_filled[False-OuterCode0-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_debug_renderer_filled[False-OuterOffset-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_debug_renderer_filled[False-ChunkCombinedCode-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_debug_renderer_filled[False-ChunkCombinedOffset-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_debug_renderer_filled[False-ChunkCombinedCodeOffset-False] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_debug_renderer_filled[False-ChunkCombinedOffsetOffset-False] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_debug_renderer_filled[False-OuterCode1-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = 'OuterCode', multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_debug_renderer_filled[True-OuterCode0-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_debug_renderer_filled[True-OuterOffset-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_debug_renderer_filled[True-ChunkCombinedCode-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_debug_renderer_filled[True-ChunkCombinedOffset-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_debug_renderer_filled[True-ChunkCombinedCodeOffset-False] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_debug_renderer_filled[True-ChunkCombinedOffsetOffset-False] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_debug_renderer_filled[True-OuterCode1-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, fill_type = 'OuterCode', multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_filled(show_text: bool, fill_type: FillType | str, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:22: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 22, in test_debug_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_debug_renderer_lines[False-Separate0-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, line_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_lines(show_text: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 55, in test_debug_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_debug_renderer_lines[False-SeparateCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, line_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_lines(show_text: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 55, in test_debug_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_debug_renderer_lines[False-ChunkCombinedCode-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, line_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_lines(show_text: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 55, in test_debug_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_debug_renderer_lines[False-ChunkCombinedOffset-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, line_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_lines(show_text: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 55, in test_debug_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_debug_renderer_lines[False-ChunkCombinedNan-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, line_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_lines(show_text: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 55, in test_debug_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_debug_renderer_lines[False-Separate1-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, line_type = 'Separate', multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_lines(show_text: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 55, in test_debug_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_debug_renderer_lines[True-Separate0-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, line_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_lines(show_text: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 55, in test_debug_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_debug_renderer_lines[True-SeparateCode-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, line_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_lines(show_text: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 55, in test_debug_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_debug_renderer_lines[True-ChunkCombinedCode-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, line_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_lines(show_text: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 55, in test_debug_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_debug_renderer_lines[True-ChunkCombinedOffset-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, line_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_lines(show_text: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 55, in test_debug_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_debug_renderer_lines[True-ChunkCombinedNan-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, line_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_lines(show_text: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 55, in test_debug_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_debug_renderer_lines[True-Separate1-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, line_type = 'Separate', multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_debug_renderer_lines(show_text: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer tests/test_renderer.py:55: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 55, in test_debug_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_renderer_filled[False-OuterCode0-False-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, fill_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_renderer_filled[False-OuterCode0-True-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, fill_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_renderer_filled[False-OuterOffset-False-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, fill_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_renderer_filled[False-OuterOffset-True-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, fill_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_renderer_filled[False-ChunkCombinedCode-False-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, fill_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_renderer_filled[False-ChunkCombinedCode-True-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, fill_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _________ test_renderer_filled[False-ChunkCombinedOffset-False-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False fill_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_renderer_filled[False-ChunkCombinedOffset-True-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, fill_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_renderer_filled[False-ChunkCombinedCodeOffset-False-False] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False fill_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_renderer_filled[False-ChunkCombinedCodeOffset-True-False] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True fill_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______ test_renderer_filled[False-ChunkCombinedOffsetOffset-False-False] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False fill_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_renderer_filled[False-ChunkCombinedOffsetOffset-True-False] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True fill_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_renderer_filled[False-OuterCode1-False-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, fill_type = 'OuterCode', multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_renderer_filled[False-OuterCode1-True-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, fill_type = 'OuterCode', multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_renderer_filled[True-OuterCode0-False-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, fill_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_renderer_filled[True-OuterCode0-True-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, fill_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_renderer_filled[True-OuterOffset-False-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, fill_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_renderer_filled[True-OuterOffset-True-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, fill_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_renderer_filled[True-ChunkCombinedCode-False-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, fill_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_renderer_filled[True-ChunkCombinedCode-True-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, fill_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_renderer_filled[True-ChunkCombinedOffset-False-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False fill_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_renderer_filled[True-ChunkCombinedOffset-True-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, fill_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_renderer_filled[True-ChunkCombinedCodeOffset-False-False] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False fill_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________ test_renderer_filled[True-ChunkCombinedCodeOffset-True-False] _________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True fill_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_renderer_filled[True-ChunkCombinedOffsetOffset-False-False] _______ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False fill_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______ test_renderer_filled[True-ChunkCombinedOffsetOffset-True-False] ________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True fill_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_renderer_filled[True-OuterCode1-False-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, fill_type = 'OuterCode', multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_renderer_filled[True-OuterCode1-True-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, fill_type = 'OuterCode', multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("fill_type", [*FillType.__members__.values(), "OuterCode"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_filled(show_text: bool, debug: bool, fill_type: FillType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:89: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 89, in test_renderer_filled from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_renderer_lines[False-Separate0-False-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, line_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_renderer_lines[False-Separate0-True-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, line_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________ test_renderer_lines[False-SeparateCode-False-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, line_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_renderer_lines[False-SeparateCode-True-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, line_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_renderer_lines[False-ChunkCombinedCode-False-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, line_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_renderer_lines[False-ChunkCombinedCode-True-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, line_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_renderer_lines[False-ChunkCombinedOffset-False-False] __________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False line_type = , multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_renderer_lines[False-ChunkCombinedOffset-True-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, line_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_renderer_lines[False-ChunkCombinedNan-False-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, line_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_renderer_lines[False-ChunkCombinedNan-True-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, line_type = multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_renderer_lines[False-Separate1-False-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, line_type = 'Separate', multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_renderer_lines[False-Separate1-True-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, line_type = 'Separate', multi = False @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_renderer_lines[True-Separate0-False-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, line_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_renderer_lines[True-Separate0-True-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, line_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_renderer_lines[True-SeparateCode-False-False] ______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, line_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ______________ test_renderer_lines[True-SeparateCode-True-False] _______________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, line_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_renderer_lines[True-ChunkCombinedCode-False-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, line_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_renderer_lines[True-ChunkCombinedCode-True-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, line_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. __________ test_renderer_lines[True-ChunkCombinedOffset-False-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False line_type = , multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ___________ test_renderer_lines[True-ChunkCombinedOffset-True-False] ___________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, line_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_renderer_lines[True-ChunkCombinedNan-False-False] ____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, line_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ____________ test_renderer_lines[True-ChunkCombinedNan-True-False] _____________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, line_type = multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _______________ test_renderer_lines[True-Separate1-False-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = False, line_type = 'Separate', multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. ________________ test_renderer_lines[True-Separate1-True-False] ________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: show_text = False, debug = True, line_type = 'Separate', multi = True @pytest.mark.image @pytest.mark.text @pytest.mark.parametrize("show_text", [False, True]) @pytest.mark.parametrize("debug", [False, True]) @pytest.mark.parametrize("line_type", [*LineType.__members__.values(), "Separate"]) @pytest.mark.parametrize("multi", [False, True]) def test_renderer_lines(show_text: bool, debug: bool, line_type: LineType, multi: bool) -> None: > from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer tests/test_renderer.py:141: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 141, in test_renderer_lines from contourpy.util.mpl_renderer import MplDebugRenderer, MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________________________ test_save_png[False] _____________________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: transparent = False tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_save_png_False_0') @pytest.mark.image @pytest.mark.parametrize("transparent", [False, True]) def test_save_png(transparent: bool, tmpdir: LocalPath) -> None: from PIL import Image > from contourpy.util.mpl_renderer import MplRenderer tests/test_renderer.py:193: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 193, in test_save_png from contourpy.util.mpl_renderer import MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________________________ test_save_png[True] ______________________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: transparent = True tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_save_png_True_0') @pytest.mark.image @pytest.mark.parametrize("transparent", [False, True]) def test_save_png(transparent: bool, tmpdir: LocalPath) -> None: from PIL import Image > from contourpy.util.mpl_renderer import MplRenderer tests/test_renderer.py:193: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 193, in test_save_png from contourpy.util.mpl_renderer import MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________________________ test_save_svg[False] _____________________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: transparent = False tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_save_svg_False_0') @pytest.mark.image @pytest.mark.parametrize("transparent", [False, True]) def test_save_svg(transparent: bool, tmpdir: LocalPath) -> None: > from contourpy.util.mpl_renderer import MplRenderer tests/test_renderer.py:213: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 213, in test_save_svg from contourpy.util.mpl_renderer import MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. _____________________________ test_save_svg[True] ______________________________ ImportError: numpy.core.multiarray failed to import The above exception was the direct cause of the following exception: transparent = True tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_save_svg_True_0') @pytest.mark.image @pytest.mark.parametrize("transparent", [False, True]) def test_save_svg(transparent: bool, tmpdir: LocalPath) -> None: > from contourpy.util.mpl_renderer import MplRenderer tests/test_renderer.py:213: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ../BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py:6: in import matplotlib.collections as mcollections /usr/lib64/python3.13/site-packages/matplotlib/__init__.py:159: in from . import _api, _version, cbook, _docstring, rcsetup /usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py:28: in from matplotlib.colors import Colormap, is_color_like /usr/lib64/python3.13/site-packages/matplotlib/colors.py:57: in from matplotlib import _api, _cm, cbook, scale /usr/lib64/python3.13/site-packages/matplotlib/scale.py:22: in from matplotlib.ticker import ( /usr/lib64/python3.13/site-packages/matplotlib/ticker.py:144: in from matplotlib import transforms as mtransforms _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ """ Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are automatically invalidated. The next time an invalidated transform is accessed, it is recomputed to reflect those changes. This invalidation/caching approach prevents unnecessary recomputations of transforms, and contributes to better interactive performance. For example, here is a graph of the transform tree used to plot data to the graph: .. image:: ../_static/transforms.png The framework can be used for both affine and non-affine transformations. However, for speed, we want to use the backend renderers to perform affine transformations whenever possible. Therefore, it is possible to perform just the affine or non-affine part of a transformation on a set of data. The affine is always assumed to occur after the non-affine. For any transform:: full transform == non-affine part + affine part The backends are not expected to handle non-affine transformations themselves. See the tutorial :ref:`transforms_tutorial` for examples of how to use transforms. """ # Note: There are a number of places in the code where we use `np.min` or # `np.minimum` instead of the builtin `min`, and likewise for `max`. This is # done so that `nan`s are propagated, instead of being silently dropped. import copy import functools import textwrap import weakref import math import numpy as np from numpy.linalg import inv from matplotlib import _api > from matplotlib._path import ( affine_transform, count_bboxes_overlapping_bbox, update_path_extents) E ImportError: initialization failed /usr/lib64/python3.13/site-packages/matplotlib/transforms.py:49: ImportError ----------------------------- Captured stderr call ----------------------------- A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. Traceback (most recent call last): File "/usr/bin/pytest", line 8, in sys.exit(console_main()) File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 201, in console_main code = main() File "/usr/lib/python3.13/site-packages/_pytest/config/__init__.py", line 175, in main ret: ExitCode | int = config.hook.pytest_cmdline_main(config=config) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 330, in pytest_cmdline_main return wrap_session(config, _main) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 283, in wrap_session session.exitstatus = doit(config, session) or 0 File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 337, in _main config.hook.pytest_runtestloop(session=session) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/main.py", line 362, in pytest_runtestloop item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 113, in pytest_runtest_protocol runtestprotocol(item, nextitem=nextitem) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 132, in runtestprotocol reports.append(call_and_report(item, "call", log)) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 241, in call_and_report call = CallInfo.from_call( File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 341, in from_call result: TResult | None = func() File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 242, in lambda: runtest_hook(item=item, **kwds), when=when, reraise=reraise File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/runner.py", line 174, in pytest_runtest_call item.runtest() File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 1627, in runtest self.ihook.pytest_pyfunc_call(pyfuncitem=self) File "/usr/lib/python3.13/site-packages/pluggy/_hooks.py", line 513, in __call__ return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_manager.py", line 120, in _hookexec return self._inner_hookexec(hook_name, methods, kwargs, firstresult) File "/usr/lib/python3.13/site-packages/pluggy/_callers.py", line 103, in _multicall res = hook_impl.function(*args) File "/usr/lib/python3.13/site-packages/_pytest/python.py", line 159, in pytest_pyfunc_call result = testfunction(**testargs) File "/builddir/build/BUILD/python-contourpy-1.3.0-build/contourpy-1.3.0/tests/test_renderer.py", line 213, in test_save_svg from contourpy.util.mpl_renderer import MplRenderer File "/builddir/build/BUILD/python-contourpy-1.3.0-build/BUILDROOT/usr/lib64/python3.13/site-packages/contourpy/util/mpl_renderer.py", line 6, in import matplotlib.collections as mcollections File "/usr/lib64/python3.13/site-packages/matplotlib/__init__.py", line 159, in from . import _api, _version, cbook, _docstring, rcsetup File "/usr/lib64/python3.13/site-packages/matplotlib/rcsetup.py", line 28, in from matplotlib.colors import Colormap, is_color_like File "/usr/lib64/python3.13/site-packages/matplotlib/colors.py", line 57, in from matplotlib import _api, _cm, cbook, scale File "/usr/lib64/python3.13/site-packages/matplotlib/scale.py", line 22, in from matplotlib.ticker import ( File "/usr/lib64/python3.13/site-packages/matplotlib/ticker.py", line 144, in from matplotlib import transforms as mtransforms File "/usr/lib64/python3.13/site-packages/matplotlib/transforms.py", line 49, in from matplotlib._path import ( Traceback (most recent call last): File "/usr/lib64/python3.13/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__ raise ImportError(msg) ImportError: A module that was compiled using NumPy 1.x cannot be run in NumPy 2.1.3 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'. If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2. =========================== short test summary info ============================ FAILED tests/test_config.py::test_config_filled[mpl2005-False] - ImportError:... FAILED tests/test_config.py::test_config_filled[mpl2014-False] - ImportError:... FAILED tests/test_config.py::test_config_filled[serial-False] - ImportError: ... FAILED tests/test_config.py::test_config_filled[threaded-False] - ImportError... FAILED tests/test_config.py::test_config_filled_quad_as_tri[serial-False] - I... FAILED tests/test_config.py::test_config_filled_quad_as_tri[threaded-False] FAILED tests/test_config.py::test_config_filled_corner[mpl2014-False] - Impor... FAILED tests/test_config.py::test_config_filled_corner[serial-False] - Import... FAILED tests/test_config.py::test_config_filled_corner[threaded-False] - Impo... FAILED tests/test_config.py::test_config_lines[mpl2005-False] - ImportError: ... FAILED tests/test_config.py::test_config_lines[mpl2014-False] - ImportError: ... FAILED tests/test_config.py::test_config_lines[serial-False] - ImportError: i... FAILED tests/test_config.py::test_config_lines[threaded-False] - ImportError:... FAILED tests/test_config.py::test_config_lines_quad_as_tri[serial-False] - Im... FAILED tests/test_config.py::test_config_lines_quad_as_tri[threaded-False] - ... FAILED tests/test_config.py::test_config_lines_corner[mpl2014-False] - Import... FAILED tests/test_config.py::test_config_lines_corner[serial-False] - ImportE... FAILED tests/test_config.py::test_config_lines_corner[threaded-False] - Impor... FAILED tests/test_filled.py::test_filled_simple[mpl2005-OuterCode-False] - Im... FAILED tests/test_filled.py::test_filled_simple[mpl2005-OuterCode-True] - Imp... FAILED tests/test_filled.py::test_filled_simple[mpl2014-OuterCode-False] - Im... FAILED tests/test_filled.py::test_filled_simple[mpl2014-OuterCode-True] - Imp... FAILED tests/test_filled.py::test_filled_simple[serial-OuterCode-False] - Imp... FAILED tests/test_filled.py::test_filled_simple[serial-OuterCode-True] - Impo... FAILED tests/test_filled.py::test_filled_simple[serial-OuterOffset-False] - I... FAILED tests/test_filled.py::test_filled_simple[serial-OuterOffset-True] - Im... FAILED tests/test_filled.py::test_filled_simple[serial-ChunkCombinedCode-False] FAILED tests/test_filled.py::test_filled_simple[serial-ChunkCombinedCode-True] FAILED tests/test_filled.py::test_filled_simple[serial-ChunkCombinedOffset-False] FAILED tests/test_filled.py::test_filled_simple[serial-ChunkCombinedOffset-True] FAILED tests/test_filled.py::test_filled_simple[serial-ChunkCombinedCodeOffset-False] FAILED tests/test_filled.py::test_filled_simple[serial-ChunkCombinedCodeOffset-True] FAILED tests/test_filled.py::test_filled_simple[serial-ChunkCombinedOffsetOffset-False] FAILED tests/test_filled.py::test_filled_simple[serial-ChunkCombinedOffsetOffset-True] FAILED tests/test_filled.py::test_filled_simple[threaded-OuterCode-False] - I... FAILED tests/test_filled.py::test_filled_simple[threaded-OuterCode-True] - Im... FAILED tests/test_filled.py::test_filled_simple[threaded-OuterOffset-False] FAILED tests/test_filled.py::test_filled_simple[threaded-OuterOffset-True] - ... FAILED tests/test_filled.py::test_filled_simple[threaded-ChunkCombinedCode-False] FAILED tests/test_filled.py::test_filled_simple[threaded-ChunkCombinedCode-True] FAILED tests/test_filled.py::test_filled_simple[threaded-ChunkCombinedOffset-False] FAILED tests/test_filled.py::test_filled_simple[threaded-ChunkCombinedOffset-True] FAILED tests/test_filled.py::test_filled_simple[threaded-ChunkCombinedCodeOffset-False] FAILED tests/test_filled.py::test_filled_simple[threaded-ChunkCombinedCodeOffset-True] FAILED tests/test_filled.py::test_filled_simple[threaded-ChunkCombinedOffsetOffset-False] FAILED tests/test_filled.py::test_filled_simple[threaded-ChunkCombinedOffsetOffset-True] FAILED tests/test_filled.py::test_filled_simple_chunk[mpl2005-OuterCode-False] FAILED tests/test_filled.py::test_filled_simple_chunk[mpl2005-OuterCode-True] FAILED tests/test_filled.py::test_filled_simple_chunk[mpl2014-OuterCode-False] FAILED tests/test_filled.py::test_filled_simple_chunk[mpl2014-OuterCode-True] FAILED tests/test_filled.py::test_filled_simple_chunk[serial-OuterCode-False] FAILED tests/test_filled.py::test_filled_simple_chunk[serial-OuterCode-True] FAILED tests/test_filled.py::test_filled_simple_chunk[serial-OuterOffset-False] FAILED tests/test_filled.py::test_filled_simple_chunk[serial-OuterOffset-True] FAILED tests/test_filled.py::test_filled_simple_chunk[serial-ChunkCombinedCode-False] FAILED tests/test_filled.py::test_filled_simple_chunk[serial-ChunkCombinedCode-True] FAILED tests/test_filled.py::test_filled_simple_chunk[serial-ChunkCombinedOffset-False] FAILED tests/test_filled.py::test_filled_simple_chunk[serial-ChunkCombinedOffset-True] FAILED tests/test_filled.py::test_filled_simple_chunk[serial-ChunkCombinedCodeOffset-False] FAILED tests/test_filled.py::test_filled_simple_chunk[serial-ChunkCombinedCodeOffset-True] FAILED tests/test_filled.py::test_filled_simple_chunk[serial-ChunkCombinedOffsetOffset-False] FAILED tests/test_filled.py::test_filled_simple_chunk[serial-ChunkCombinedOffsetOffset-True] FAILED tests/test_filled.py::test_filled_simple_chunk[threaded-OuterCode-False] FAILED tests/test_filled.py::test_filled_simple_chunk[threaded-OuterCode-True] FAILED tests/test_filled.py::test_filled_simple_chunk[threaded-OuterOffset-False] FAILED tests/test_filled.py::test_filled_simple_chunk[threaded-OuterOffset-True] FAILED tests/test_filled.py::test_filled_simple_chunk[threaded-ChunkCombinedCode-False] FAILED tests/test_filled.py::test_filled_simple_chunk[threaded-ChunkCombinedCode-True] FAILED tests/test_filled.py::test_filled_simple_chunk[threaded-ChunkCombinedOffset-False] FAILED tests/test_filled.py::test_filled_simple_chunk[threaded-ChunkCombinedOffset-True] FAILED tests/test_filled.py::test_filled_simple_chunk[threaded-ChunkCombinedCodeOffset-False] FAILED tests/test_filled.py::test_filled_simple_chunk[threaded-ChunkCombinedCodeOffset-True] FAILED tests/test_filled.py::test_filled_simple_chunk[threaded-ChunkCombinedOffsetOffset-False] FAILED tests/test_filled.py::test_filled_simple_chunk[threaded-ChunkCombinedOffsetOffset-True] FAILED tests/test_filled.py::test_filled_simple_chunk_threads[2-OuterCode] - ... FAILED tests/test_filled.py::test_filled_simple_chunk_threads[2-OuterOffset] FAILED tests/test_filled.py::test_filled_simple_chunk_threads[2-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_simple_chunk_threads[2-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_simple_chunk_threads[2-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_simple_chunk_threads[2-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[mpl2005-OuterCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[mpl2014-OuterCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[serial-OuterCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[serial-OuterOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[serial-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[serial-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[serial-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[serial-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[threaded-OuterCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[threaded-OuterOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[threaded-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[threaded-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[threaded-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask[threaded-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[mpl2005-OuterCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[mpl2014-OuterCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[serial-OuterCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[serial-OuterOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[serial-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[serial-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[serial-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[serial-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[threaded-OuterCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[threaded-OuterOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[threaded-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[threaded-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[threaded-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk[threaded-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk_threads[2-OuterCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk_threads[2-OuterOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk_threads[2-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk_threads[2-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk_threads[2-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_simple_no_corner_mask_chunk_threads[2-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_simple_corner_mask[mpl2014] - Import... FAILED tests/test_filled.py::test_filled_simple_corner_mask[serial] - ImportE... FAILED tests/test_filled.py::test_filled_simple_corner_mask[threaded] - Impor... FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk[mpl2014] - ... FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk[serial] - I... FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk[threaded] FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk_threads[2-OuterCode] FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk_threads[2-OuterOffset] FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk_threads[2-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk_threads[2-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk_threads[2-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_simple_corner_mask_chunk_threads[2-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_simple_quad_as_tri[serial] - ImportE... FAILED tests/test_filled.py::test_filled_simple_quad_as_tri[threaded] - Impor... FAILED tests/test_filled.py::test_filled_random[mpl2005-OuterCode-False] - Im... FAILED tests/test_filled.py::test_filled_random[mpl2005-OuterCode-True] - Imp... FAILED tests/test_filled.py::test_filled_random[mpl2014-OuterCode-False] - Im... FAILED tests/test_filled.py::test_filled_random[mpl2014-OuterCode-True] - Imp... FAILED tests/test_filled.py::test_filled_random[serial-OuterCode-False] - Imp... FAILED tests/test_filled.py::test_filled_random[serial-OuterCode-True] - Impo... FAILED tests/test_filled.py::test_filled_random[serial-OuterOffset-False] - I... FAILED tests/test_filled.py::test_filled_random[serial-OuterOffset-True] - Im... FAILED tests/test_filled.py::test_filled_random[serial-ChunkCombinedCode-False] FAILED tests/test_filled.py::test_filled_random[serial-ChunkCombinedCode-True] FAILED tests/test_filled.py::test_filled_random[serial-ChunkCombinedOffset-False] FAILED tests/test_filled.py::test_filled_random[serial-ChunkCombinedOffset-True] FAILED tests/test_filled.py::test_filled_random[serial-ChunkCombinedCodeOffset-False] FAILED tests/test_filled.py::test_filled_random[serial-ChunkCombinedCodeOffset-True] FAILED tests/test_filled.py::test_filled_random[serial-ChunkCombinedOffsetOffset-False] FAILED tests/test_filled.py::test_filled_random[serial-ChunkCombinedOffsetOffset-True] FAILED tests/test_filled.py::test_filled_random[threaded-OuterCode-False] - I... FAILED tests/test_filled.py::test_filled_random[threaded-OuterCode-True] - Im... FAILED tests/test_filled.py::test_filled_random[threaded-OuterOffset-False] FAILED tests/test_filled.py::test_filled_random[threaded-OuterOffset-True] - ... FAILED tests/test_filled.py::test_filled_random[threaded-ChunkCombinedCode-False] FAILED tests/test_filled.py::test_filled_random[threaded-ChunkCombinedCode-True] FAILED tests/test_filled.py::test_filled_random[threaded-ChunkCombinedOffset-False] FAILED tests/test_filled.py::test_filled_random[threaded-ChunkCombinedOffset-True] FAILED tests/test_filled.py::test_filled_random[threaded-ChunkCombinedCodeOffset-False] FAILED tests/test_filled.py::test_filled_random[threaded-ChunkCombinedCodeOffset-True] FAILED tests/test_filled.py::test_filled_random[threaded-ChunkCombinedOffsetOffset-False] FAILED tests/test_filled.py::test_filled_random[threaded-ChunkCombinedOffsetOffset-True] FAILED tests/test_filled.py::test_filled_random_chunk[mpl2005-OuterCode-False] FAILED tests/test_filled.py::test_filled_random_chunk[mpl2005-OuterCode-True] FAILED tests/test_filled.py::test_filled_random_chunk[mpl2014-OuterCode-False] FAILED tests/test_filled.py::test_filled_random_chunk[mpl2014-OuterCode-True] FAILED tests/test_filled.py::test_filled_random_chunk[serial-OuterCode-False] FAILED tests/test_filled.py::test_filled_random_chunk[serial-OuterCode-True] FAILED tests/test_filled.py::test_filled_random_chunk[serial-OuterOffset-False] FAILED tests/test_filled.py::test_filled_random_chunk[serial-OuterOffset-True] FAILED tests/test_filled.py::test_filled_random_chunk[serial-ChunkCombinedCode-False] FAILED tests/test_filled.py::test_filled_random_chunk[serial-ChunkCombinedCode-True] FAILED tests/test_filled.py::test_filled_random_chunk[serial-ChunkCombinedOffset-False] FAILED tests/test_filled.py::test_filled_random_chunk[serial-ChunkCombinedOffset-True] FAILED tests/test_filled.py::test_filled_random_chunk[serial-ChunkCombinedCodeOffset-False] FAILED tests/test_filled.py::test_filled_random_chunk[serial-ChunkCombinedCodeOffset-True] FAILED tests/test_filled.py::test_filled_random_chunk[serial-ChunkCombinedOffsetOffset-False] FAILED tests/test_filled.py::test_filled_random_chunk[serial-ChunkCombinedOffsetOffset-True] FAILED tests/test_filled.py::test_filled_random_chunk[threaded-OuterCode-False] FAILED tests/test_filled.py::test_filled_random_chunk[threaded-OuterCode-True] FAILED tests/test_filled.py::test_filled_random_chunk[threaded-OuterOffset-False] FAILED tests/test_filled.py::test_filled_random_chunk[threaded-OuterOffset-True] FAILED tests/test_filled.py::test_filled_random_chunk[threaded-ChunkCombinedCode-False] FAILED tests/test_filled.py::test_filled_random_chunk[threaded-ChunkCombinedCode-True] FAILED tests/test_filled.py::test_filled_random_chunk[threaded-ChunkCombinedOffset-False] FAILED tests/test_filled.py::test_filled_random_chunk[threaded-ChunkCombinedOffset-True] FAILED tests/test_filled.py::test_filled_random_chunk[threaded-ChunkCombinedCodeOffset-False] FAILED tests/test_filled.py::test_filled_random_chunk[threaded-ChunkCombinedCodeOffset-True] FAILED tests/test_filled.py::test_filled_random_chunk[threaded-ChunkCombinedOffsetOffset-False] FAILED tests/test_filled.py::test_filled_random_chunk[threaded-ChunkCombinedOffsetOffset-True] FAILED tests/test_filled.py::test_filled_random_chunk_threads[2-OuterCode] - ... FAILED tests/test_filled.py::test_filled_random_chunk_threads[2-OuterOffset] FAILED tests/test_filled.py::test_filled_random_chunk_threads[2-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_random_chunk_threads[2-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_random_chunk_threads[2-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_random_chunk_threads[2-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[mpl2005-OuterCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[mpl2014-OuterCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[serial-OuterCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[serial-OuterOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[serial-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[serial-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[serial-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[serial-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[threaded-OuterCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[threaded-OuterOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[threaded-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[threaded-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[threaded-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask[threaded-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[mpl2005-OuterCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[mpl2014-OuterCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[serial-OuterCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[serial-OuterOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[serial-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[serial-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[serial-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[serial-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[threaded-OuterCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[threaded-OuterOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[threaded-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[threaded-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[threaded-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk[threaded-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk_threads[2-OuterCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk_threads[2-OuterOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk_threads[2-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk_threads[2-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk_threads[2-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_random_no_corner_mask_chunk_threads[2-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_random_corner_mask[mpl2014] - Import... FAILED tests/test_filled.py::test_filled_random_corner_mask[serial] - ImportE... FAILED tests/test_filled.py::test_filled_random_corner_mask[threaded] - Impor... FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk[mpl2014] - ... FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk[serial] - I... FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk[threaded] FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk_threads[2-OuterCode] FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk_threads[2-OuterOffset] FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk_threads[2-ChunkCombinedCode] FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk_threads[2-ChunkCombinedOffset] FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk_threads[2-ChunkCombinedCodeOffset] FAILED tests/test_filled.py::test_filled_random_corner_mask_chunk_threads[2-ChunkCombinedOffsetOffset] FAILED tests/test_filled.py::test_filled_random_quad_as_tri[serial] - ImportE... FAILED tests/test_filled.py::test_filled_random_quad_as_tri[threaded] - Impor... FAILED tests/test_lines.py::test_lines_simple[mpl2005-SeparateCode-False] - I... FAILED tests/test_lines.py::test_lines_simple[mpl2005-SeparateCode-True] - Im... FAILED tests/test_lines.py::test_lines_simple[mpl2014-SeparateCode-False] - I... FAILED tests/test_lines.py::test_lines_simple[mpl2014-SeparateCode-True] - Im... FAILED tests/test_lines.py::test_lines_simple[serial-Separate-False] - Import... FAILED tests/test_lines.py::test_lines_simple[serial-Separate-True] - ImportE... FAILED tests/test_lines.py::test_lines_simple[serial-SeparateCode-False] - Im... FAILED tests/test_lines.py::test_lines_simple[serial-SeparateCode-True] - Imp... FAILED tests/test_lines.py::test_lines_simple[serial-ChunkCombinedCode-False] FAILED tests/test_lines.py::test_lines_simple[serial-ChunkCombinedCode-True] FAILED tests/test_lines.py::test_lines_simple[serial-ChunkCombinedOffset-False] FAILED tests/test_lines.py::test_lines_simple[serial-ChunkCombinedOffset-True] FAILED tests/test_lines.py::test_lines_simple[serial-ChunkCombinedNan-False] FAILED tests/test_lines.py::test_lines_simple[serial-ChunkCombinedNan-True] FAILED tests/test_lines.py::test_lines_simple[threaded-Separate-False] - Impo... FAILED tests/test_lines.py::test_lines_simple[threaded-Separate-True] - Impor... FAILED tests/test_lines.py::test_lines_simple[threaded-SeparateCode-False] - ... FAILED tests/test_lines.py::test_lines_simple[threaded-SeparateCode-True] - I... FAILED tests/test_lines.py::test_lines_simple[threaded-ChunkCombinedCode-False] FAILED tests/test_lines.py::test_lines_simple[threaded-ChunkCombinedCode-True] FAILED tests/test_lines.py::test_lines_simple[threaded-ChunkCombinedOffset-False] FAILED tests/test_lines.py::test_lines_simple[threaded-ChunkCombinedOffset-True] FAILED tests/test_lines.py::test_lines_simple[threaded-ChunkCombinedNan-False] FAILED tests/test_lines.py::test_lines_simple[threaded-ChunkCombinedNan-True] FAILED tests/test_lines.py::test_lines_simple_chunk[mpl2005-SeparateCode-False] FAILED tests/test_lines.py::test_lines_simple_chunk[mpl2005-SeparateCode-True] FAILED tests/test_lines.py::test_lines_simple_chunk[mpl2014-SeparateCode-False] FAILED tests/test_lines.py::test_lines_simple_chunk[mpl2014-SeparateCode-True] FAILED tests/test_lines.py::test_lines_simple_chunk[serial-Separate-False] - ... FAILED tests/test_lines.py::test_lines_simple_chunk[serial-Separate-True] - I... FAILED tests/test_lines.py::test_lines_simple_chunk[serial-SeparateCode-False] FAILED tests/test_lines.py::test_lines_simple_chunk[serial-SeparateCode-True] FAILED tests/test_lines.py::test_lines_simple_chunk[serial-ChunkCombinedCode-False] FAILED tests/test_lines.py::test_lines_simple_chunk[serial-ChunkCombinedCode-True] FAILED tests/test_lines.py::test_lines_simple_chunk[serial-ChunkCombinedOffset-False] FAILED tests/test_lines.py::test_lines_simple_chunk[serial-ChunkCombinedOffset-True] FAILED tests/test_lines.py::test_lines_simple_chunk[serial-ChunkCombinedNan-False] FAILED tests/test_lines.py::test_lines_simple_chunk[serial-ChunkCombinedNan-True] FAILED tests/test_lines.py::test_lines_simple_chunk[threaded-Separate-False] FAILED tests/test_lines.py::test_lines_simple_chunk[threaded-Separate-True] FAILED tests/test_lines.py::test_lines_simple_chunk[threaded-SeparateCode-False] FAILED tests/test_lines.py::test_lines_simple_chunk[threaded-SeparateCode-True] FAILED tests/test_lines.py::test_lines_simple_chunk[threaded-ChunkCombinedCode-False] FAILED tests/test_lines.py::test_lines_simple_chunk[threaded-ChunkCombinedCode-True] FAILED tests/test_lines.py::test_lines_simple_chunk[threaded-ChunkCombinedOffset-False] FAILED tests/test_lines.py::test_lines_simple_chunk[threaded-ChunkCombinedOffset-True] FAILED tests/test_lines.py::test_lines_simple_chunk[threaded-ChunkCombinedNan-False] FAILED tests/test_lines.py::test_lines_simple_chunk[threaded-ChunkCombinedNan-True] FAILED tests/test_lines.py::test_lines_simple_chunk_threads[2-Separate] - Imp... FAILED tests/test_lines.py::test_lines_simple_chunk_threads[2-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_chunk_threads[2-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_simple_chunk_threads[2-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_simple_chunk_threads[2-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask[mpl2005-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask[mpl2014-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask[serial-Separate] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask[serial-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask[serial-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask[serial-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask[serial-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask[threaded-Separate] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask[threaded-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask[threaded-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask[threaded-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask[threaded-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk[mpl2005-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk[mpl2014-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk[serial-Separate] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk[serial-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk[serial-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk[serial-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk[serial-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk[threaded-Separate] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk[threaded-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk[threaded-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk[threaded-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk[threaded-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk_threads[2-Separate] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk_threads[2-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk_threads[2-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk_threads[2-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_simple_no_corner_mask_chunk_threads[2-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_simple_corner_mask[mpl2014] - ImportEr... FAILED tests/test_lines.py::test_lines_simple_corner_mask[serial] - ImportErr... FAILED tests/test_lines.py::test_lines_simple_corner_mask[threaded] - ImportE... FAILED tests/test_lines.py::test_lines_simple_corner_mask_chunk[mpl2014] - Im... FAILED tests/test_lines.py::test_lines_simple_corner_mask_chunk[serial] - Imp... FAILED tests/test_lines.py::test_lines_simple_corner_mask_chunk[threaded] - I... FAILED tests/test_lines.py::test_lines_simple_corner_mask_chunk_threads[2-Separate] FAILED tests/test_lines.py::test_lines_simple_corner_mask_chunk_threads[2-SeparateCode] FAILED tests/test_lines.py::test_lines_simple_corner_mask_chunk_threads[2-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_simple_corner_mask_chunk_threads[2-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_simple_corner_mask_chunk_threads[2-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_simple_quad_as_tri[serial] - ImportErr... FAILED tests/test_lines.py::test_lines_simple_quad_as_tri[threaded] - ImportE... FAILED tests/test_lines.py::test_lines_random[mpl2005-SeparateCode-False] - I... FAILED tests/test_lines.py::test_lines_random[mpl2005-SeparateCode-True] - Im... FAILED tests/test_lines.py::test_lines_random[mpl2014-SeparateCode-False] - I... FAILED tests/test_lines.py::test_lines_random[mpl2014-SeparateCode-True] - Im... FAILED tests/test_lines.py::test_lines_random[serial-Separate-False] - Import... FAILED tests/test_lines.py::test_lines_random[serial-Separate-True] - ImportE... FAILED tests/test_lines.py::test_lines_random[serial-SeparateCode-False] - Im... FAILED tests/test_lines.py::test_lines_random[serial-SeparateCode-True] - Imp... FAILED tests/test_lines.py::test_lines_random[serial-ChunkCombinedCode-False] FAILED tests/test_lines.py::test_lines_random[serial-ChunkCombinedCode-True] FAILED tests/test_lines.py::test_lines_random[serial-ChunkCombinedOffset-False] FAILED tests/test_lines.py::test_lines_random[serial-ChunkCombinedOffset-True] FAILED tests/test_lines.py::test_lines_random[serial-ChunkCombinedNan-False] FAILED tests/test_lines.py::test_lines_random[serial-ChunkCombinedNan-True] FAILED tests/test_lines.py::test_lines_random[threaded-Separate-False] - Impo... FAILED tests/test_lines.py::test_lines_random[threaded-Separate-True] - Impor... FAILED tests/test_lines.py::test_lines_random[threaded-SeparateCode-False] - ... FAILED tests/test_lines.py::test_lines_random[threaded-SeparateCode-True] - I... FAILED tests/test_lines.py::test_lines_random[threaded-ChunkCombinedCode-False] FAILED tests/test_lines.py::test_lines_random[threaded-ChunkCombinedCode-True] FAILED tests/test_lines.py::test_lines_random[threaded-ChunkCombinedOffset-False] FAILED tests/test_lines.py::test_lines_random[threaded-ChunkCombinedOffset-True] FAILED tests/test_lines.py::test_lines_random[threaded-ChunkCombinedNan-False] FAILED tests/test_lines.py::test_lines_random[threaded-ChunkCombinedNan-True] FAILED tests/test_lines.py::test_lines_random_chunk[mpl2005-SeparateCode-False] FAILED tests/test_lines.py::test_lines_random_chunk[mpl2005-SeparateCode-True] FAILED tests/test_lines.py::test_lines_random_chunk[mpl2014-SeparateCode-False] FAILED tests/test_lines.py::test_lines_random_chunk[mpl2014-SeparateCode-True] FAILED tests/test_lines.py::test_lines_random_chunk[serial-Separate-False] - ... FAILED tests/test_lines.py::test_lines_random_chunk[serial-Separate-True] - I... FAILED tests/test_lines.py::test_lines_random_chunk[serial-SeparateCode-False] FAILED tests/test_lines.py::test_lines_random_chunk[serial-SeparateCode-True] FAILED tests/test_lines.py::test_lines_random_chunk[serial-ChunkCombinedCode-False] FAILED tests/test_lines.py::test_lines_random_chunk[serial-ChunkCombinedCode-True] FAILED tests/test_lines.py::test_lines_random_chunk[serial-ChunkCombinedOffset-False] FAILED tests/test_lines.py::test_lines_random_chunk[serial-ChunkCombinedOffset-True] FAILED tests/test_lines.py::test_lines_random_chunk[serial-ChunkCombinedNan-False] FAILED tests/test_lines.py::test_lines_random_chunk[serial-ChunkCombinedNan-True] FAILED tests/test_lines.py::test_lines_random_chunk[threaded-Separate-False] FAILED tests/test_lines.py::test_lines_random_chunk[threaded-Separate-True] FAILED tests/test_lines.py::test_lines_random_chunk[threaded-SeparateCode-False] FAILED tests/test_lines.py::test_lines_random_chunk[threaded-SeparateCode-True] FAILED tests/test_lines.py::test_lines_random_chunk[threaded-ChunkCombinedCode-False] FAILED tests/test_lines.py::test_lines_random_chunk[threaded-ChunkCombinedCode-True] FAILED tests/test_lines.py::test_lines_random_chunk[threaded-ChunkCombinedOffset-False] FAILED tests/test_lines.py::test_lines_random_chunk[threaded-ChunkCombinedOffset-True] FAILED tests/test_lines.py::test_lines_random_chunk[threaded-ChunkCombinedNan-False] FAILED tests/test_lines.py::test_lines_random_chunk[threaded-ChunkCombinedNan-True] FAILED tests/test_lines.py::test_lines_random_chunk_threads[2-Separate] - Imp... FAILED tests/test_lines.py::test_lines_random_chunk_threads[2-SeparateCode] FAILED tests/test_lines.py::test_lines_random_chunk_threads[2-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_random_chunk_threads[2-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_random_chunk_threads[2-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_random_no_corner_mask[mpl2005-SeparateCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask[mpl2014-SeparateCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask[serial-Separate] FAILED tests/test_lines.py::test_lines_random_no_corner_mask[serial-SeparateCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask[serial-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask[serial-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_random_no_corner_mask[serial-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_random_no_corner_mask[threaded-Separate] FAILED tests/test_lines.py::test_lines_random_no_corner_mask[threaded-SeparateCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask[threaded-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask[threaded-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_random_no_corner_mask[threaded-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk[mpl2005-SeparateCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk[mpl2014-SeparateCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk[serial-Separate] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk[serial-SeparateCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk[serial-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk[serial-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk[serial-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk[threaded-Separate] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk[threaded-SeparateCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk[threaded-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk[threaded-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk[threaded-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk_threads[2-Separate] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk_threads[2-SeparateCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk_threads[2-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk_threads[2-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_random_no_corner_mask_chunk_threads[2-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_random_corner_mask[mpl2014] - ImportEr... FAILED tests/test_lines.py::test_lines_random_corner_mask[serial] - ImportErr... FAILED tests/test_lines.py::test_lines_random_corner_mask[threaded] - ImportE... FAILED tests/test_lines.py::test_lines_random_corner_mask_chunk[mpl2014] - Im... FAILED tests/test_lines.py::test_lines_random_corner_mask_chunk[serial] - Imp... FAILED tests/test_lines.py::test_lines_random_corner_mask_chunk[threaded] - I... FAILED tests/test_lines.py::test_lines_random_corner_mask_chunk_threads[2-Separate] FAILED tests/test_lines.py::test_lines_random_corner_mask_chunk_threads[2-SeparateCode] FAILED tests/test_lines.py::test_lines_random_corner_mask_chunk_threads[2-ChunkCombinedCode] FAILED tests/test_lines.py::test_lines_random_corner_mask_chunk_threads[2-ChunkCombinedOffset] FAILED tests/test_lines.py::test_lines_random_corner_mask_chunk_threads[2-ChunkCombinedNan] FAILED tests/test_lines.py::test_lines_random_quad_as_tri[serial] - ImportErr... FAILED tests/test_lines.py::test_lines_random_quad_as_tri[threaded] - ImportE... FAILED tests/test_renderer.py::test_debug_renderer_filled[False-OuterCode0-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[False-OuterOffset-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[False-ChunkCombinedCode-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[False-ChunkCombinedOffset-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[False-ChunkCombinedCodeOffset-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[False-ChunkCombinedOffsetOffset-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[False-OuterCode1-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[True-OuterCode0-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[True-OuterOffset-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[True-ChunkCombinedCode-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[True-ChunkCombinedOffset-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[True-ChunkCombinedCodeOffset-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[True-ChunkCombinedOffsetOffset-False] FAILED tests/test_renderer.py::test_debug_renderer_filled[True-OuterCode1-False] FAILED tests/test_renderer.py::test_debug_renderer_lines[False-Separate0-False] FAILED tests/test_renderer.py::test_debug_renderer_lines[False-SeparateCode-False] FAILED tests/test_renderer.py::test_debug_renderer_lines[False-ChunkCombinedCode-False] FAILED tests/test_renderer.py::test_debug_renderer_lines[False-ChunkCombinedOffset-False] FAILED tests/test_renderer.py::test_debug_renderer_lines[False-ChunkCombinedNan-False] FAILED tests/test_renderer.py::test_debug_renderer_lines[False-Separate1-False] FAILED tests/test_renderer.py::test_debug_renderer_lines[True-Separate0-False] FAILED tests/test_renderer.py::test_debug_renderer_lines[True-SeparateCode-False] FAILED tests/test_renderer.py::test_debug_renderer_lines[True-ChunkCombinedCode-False] FAILED tests/test_renderer.py::test_debug_renderer_lines[True-ChunkCombinedOffset-False] FAILED tests/test_renderer.py::test_debug_renderer_lines[True-ChunkCombinedNan-False] FAILED tests/test_renderer.py::test_debug_renderer_lines[True-Separate1-False] FAILED tests/test_renderer.py::test_renderer_filled[False-OuterCode0-False-False] FAILED tests/test_renderer.py::test_renderer_filled[False-OuterCode0-True-False] FAILED tests/test_renderer.py::test_renderer_filled[False-OuterOffset-False-False] FAILED tests/test_renderer.py::test_renderer_filled[False-OuterOffset-True-False] FAILED tests/test_renderer.py::test_renderer_filled[False-ChunkCombinedCode-False-False] FAILED tests/test_renderer.py::test_renderer_filled[False-ChunkCombinedCode-True-False] FAILED tests/test_renderer.py::test_renderer_filled[False-ChunkCombinedOffset-False-False] FAILED tests/test_renderer.py::test_renderer_filled[False-ChunkCombinedOffset-True-False] FAILED tests/test_renderer.py::test_renderer_filled[False-ChunkCombinedCodeOffset-False-False] FAILED tests/test_renderer.py::test_renderer_filled[False-ChunkCombinedCodeOffset-True-False] FAILED tests/test_renderer.py::test_renderer_filled[False-ChunkCombinedOffsetOffset-False-False] FAILED tests/test_renderer.py::test_renderer_filled[False-ChunkCombinedOffsetOffset-True-False] FAILED tests/test_renderer.py::test_renderer_filled[False-OuterCode1-False-False] FAILED tests/test_renderer.py::test_renderer_filled[False-OuterCode1-True-False] FAILED tests/test_renderer.py::test_renderer_filled[True-OuterCode0-False-False] FAILED tests/test_renderer.py::test_renderer_filled[True-OuterCode0-True-False] FAILED tests/test_renderer.py::test_renderer_filled[True-OuterOffset-False-False] FAILED tests/test_renderer.py::test_renderer_filled[True-OuterOffset-True-False] FAILED tests/test_renderer.py::test_renderer_filled[True-ChunkCombinedCode-False-False] FAILED tests/test_renderer.py::test_renderer_filled[True-ChunkCombinedCode-True-False] FAILED tests/test_renderer.py::test_renderer_filled[True-ChunkCombinedOffset-False-False] FAILED tests/test_renderer.py::test_renderer_filled[True-ChunkCombinedOffset-True-False] FAILED tests/test_renderer.py::test_renderer_filled[True-ChunkCombinedCodeOffset-False-False] FAILED tests/test_renderer.py::test_renderer_filled[True-ChunkCombinedCodeOffset-True-False] FAILED tests/test_renderer.py::test_renderer_filled[True-ChunkCombinedOffsetOffset-False-False] FAILED tests/test_renderer.py::test_renderer_filled[True-ChunkCombinedOffsetOffset-True-False] FAILED tests/test_renderer.py::test_renderer_filled[True-OuterCode1-False-False] FAILED tests/test_renderer.py::test_renderer_filled[True-OuterCode1-True-False] FAILED tests/test_renderer.py::test_renderer_lines[False-Separate0-False-False] FAILED tests/test_renderer.py::test_renderer_lines[False-Separate0-True-False] FAILED tests/test_renderer.py::test_renderer_lines[False-SeparateCode-False-False] FAILED tests/test_renderer.py::test_renderer_lines[False-SeparateCode-True-False] FAILED tests/test_renderer.py::test_renderer_lines[False-ChunkCombinedCode-False-False] FAILED tests/test_renderer.py::test_renderer_lines[False-ChunkCombinedCode-True-False] FAILED tests/test_renderer.py::test_renderer_lines[False-ChunkCombinedOffset-False-False] FAILED tests/test_renderer.py::test_renderer_lines[False-ChunkCombinedOffset-True-False] FAILED tests/test_renderer.py::test_renderer_lines[False-ChunkCombinedNan-False-False] FAILED tests/test_renderer.py::test_renderer_lines[False-ChunkCombinedNan-True-False] FAILED tests/test_renderer.py::test_renderer_lines[False-Separate1-False-False] FAILED tests/test_renderer.py::test_renderer_lines[False-Separate1-True-False] FAILED tests/test_renderer.py::test_renderer_lines[True-Separate0-False-False] FAILED tests/test_renderer.py::test_renderer_lines[True-Separate0-True-False] FAILED tests/test_renderer.py::test_renderer_lines[True-SeparateCode-False-False] FAILED tests/test_renderer.py::test_renderer_lines[True-SeparateCode-True-False] FAILED tests/test_renderer.py::test_renderer_lines[True-ChunkCombinedCode-False-False] FAILED tests/test_renderer.py::test_renderer_lines[True-ChunkCombinedCode-True-False] FAILED tests/test_renderer.py::test_renderer_lines[True-ChunkCombinedOffset-False-False] FAILED tests/test_renderer.py::test_renderer_lines[True-ChunkCombinedOffset-True-False] FAILED tests/test_renderer.py::test_renderer_lines[True-ChunkCombinedNan-False-False] FAILED tests/test_renderer.py::test_renderer_lines[True-ChunkCombinedNan-True-False] FAILED tests/test_renderer.py::test_renderer_lines[True-Separate1-False-False] FAILED tests/test_renderer.py::test_renderer_lines[True-Separate1-True-False] FAILED tests/test_renderer.py::test_save_png[False] - ImportError: initializa... FAILED tests/test_renderer.py::test_save_png[True] - ImportError: initializat... FAILED tests/test_renderer.py::test_save_svg[False] - ImportError: initializa... FAILED tests/test_renderer.py::test_save_svg[True] - ImportError: initializat... ========== 510 failed, 1820 passed, 117 skipped in 385.76s (0:06:25) =========== RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.Gv8lXF (%check) Bad exit status from /var/tmp/rpm-tmp.Gv8lXF (%check) Finish: rpmbuild python-contourpy-1.3.0-2.fc42.src.rpm Finish: build phase for python-contourpy-1.3.0-2.fc42.src.rpm INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1731685556.845210/root/var/log/dnf5.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names ERROR: Exception(/var/lib/copr-rpmbuild/results/python-contourpy-1.3.0-2.fc42.src.rpm) Config(fedora-rawhide-x86_64) 7 minutes 50 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_failure=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot ERROR: Command failed: # /usr/bin/systemd-nspawn -q -M 51275a37d7b04e9785c9e63139593da7 -D /var/lib/mock/fedora-rawhide-x86_64-1731685556.845210/root -a -u mockbuild --capability=cap_ipc_lock --rlimit=RLIMIT_NOFILE=10240 --capability=cap_ipc_lock --bind=/tmp/mock-resolv.0dvz5avj:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -ba --noprep --target x86_64 /builddir/build/originals/python-contourpy.spec' Copr build error: Build failed